summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-04-05 20:57:08 (GMT)
committerhobbs <hobbs>2006-04-05 20:57:08 (GMT)
commit126314d7ebaf845d3bc4d7d98853c3109cb21a21 (patch)
treec8a0cb79203ae379c7570dfa81e8420ef78908f1
parent0f19ba0c0e4bc4c10b7442e9c977477bf8af34ed (diff)
downloadtk-126314d7ebaf845d3bc4d7d98853c3109cb21a21.zip
tk-126314d7ebaf845d3bc4d7d98853c3109cb21a21.tar.gz
tk-126314d7ebaf845d3bc4d7d98853c3109cb21a21.tar.bz2
* tests/textWind.test (textWind-10.6.1): prevent infinite update
loop in case of test failure
-rw-r--r--tests/textWind.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/textWind.test b/tests/textWind.test
index 2ca05cb2..1044cfe 100644
--- a/tests/textWind.test
+++ b/tests/textWind.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: textWind.test,v 1.20 2005/07/18 22:12:11 vincentdarley Exp $
+# RCS: @(#) $Id: textWind.test,v 1.21 2006/04/05 20:57:08 hobbs Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -504,7 +504,8 @@ test textWind-10.6.1 {EmbWinLayoutProc procedure, error in creating window} {
}
set msg {}
update
- while {[llength $msg] == 1} { update }
+ set i 0
+ while {[llength $msg] == 1 && [incr i] < 200} { update }
set msg
} {{{can't embed .t2 relative to .t}} {{window name "t2" already exists in parent}}}