summaryrefslogtreecommitdiffstats
path: root/tests/canvas.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-19 22:10:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-19 22:10:03 (GMT)
commit027efdef074cb8c116b5f9c888ad445ea692f654 (patch)
treeb76a1d95896b40e32c3f812596f7ccab45ec558c /tests/canvas.test
parent18681848c901d1e0eb876c8b8c1b7d4106270326 (diff)
downloadtk-027efdef074cb8c116b5f9c888ad445ea692f654.zip
tk-027efdef074cb8c116b5f9c888ad445ea692f654.tar.gz
tk-027efdef074cb8c116b5f9c888ad445ea692f654.tar.bz2
[Bug 2931374]: Stop overflow of working buffer during construction of long
tag expressions.
Diffstat (limited to 'tests/canvas.test')
-rw-r--r--tests/canvas.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/canvas.test b/tests/canvas.test
index 13108fb..065de67 100644
--- a/tests/canvas.test
+++ b/tests/canvas.test
@@ -7,7 +7,7 @@
# Copyright (c) 2008 Donal K. Fellows
# All rights reserved.
#
-# RCS: @(#) $Id: canvas.test,v 1.29 2009/01/13 01:46:06 patthoyts Exp $
+# RCS: @(#) $Id: canvas.test,v 1.30 2010/01/19 22:10:03 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -488,6 +488,15 @@ test canvas-10.12 {multple events bound to same tag expr} -setup {
.c bind {a && b} <Enter> {puts Enter}
.c bind {a && b} <Leave> {puts Leave}
} -result {}
+test canvas-10.13 {more long tag searches; Bug 2931374} -setup {
+ catch {destroy .c}
+ canvas .c
+} -body {
+ .c find withtag {(A&&B&&C&&D)&&area&&!text}
+ # memory errors on failure
+} -cleanup {
+ destroy .c
+} -result {}
test canvas-11.1 {canvas poly fill check, bug 5783} -setup {
destroy .c