summaryrefslogtreecommitdiffstats
path: root/tests/winDialog.test
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2008-12-10 13:41:19 (GMT)
committerpatthoyts <patthoyts@noemail.net>2008-12-10 13:41:19 (GMT)
commitd8cd37cabba6990a176048c80d1f02600ca01b29 (patch)
treec3dd3812d95f10c519bb5409766a0a58876d7560 /tests/winDialog.test
parent04a93fb5e8bf4b767e354f8e2febd1a3041f5e64 (diff)
downloadtk-d8cd37cabba6990a176048c80d1f02600ca01b29.zip
tk-d8cd37cabba6990a176048c80d1f02600ca01b29.tar.gz
tk-d8cd37cabba6990a176048c80d1f02600ca01b29.tar.bz2
Fix some problems running the tests on windows. As Tk tests run in -singleproc 1 we cannot do the script testing without damaging the later native tests.
FossilOrigin-Name: 45d20e310417808796fa175221679bf9f466939e
Diffstat (limited to 'tests/winDialog.test')
-rw-r--r--tests/winDialog.test12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/winDialog.test b/tests/winDialog.test
index 3a5c347..f176e92 100644
--- a/tests/winDialog.test
+++ b/tests/winDialog.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# Copyright (c) 1998-1999 ActiveState Corporation.
#
-# RCS: @(#) $Id: winDialog.test,v 1.24 2008/12/10 05:02:52 das Exp $
+# RCS: @(#) $Id: winDialog.test,v 1.25 2008/12/10 13:41:19 patthoyts Exp $
package require tcltest 2.2
namespace import ::tcltest::*
@@ -43,13 +43,13 @@ proc then {cmd} {
proc afterbody {} {
if {$::tk_dialog == 0} {
- if {[incr ::iter_after] > 30} {
- set ::dialogresult ">30 iterations waiting on tk_dialog"
+ if {[incr ::iter_after] > 30} {
+ set ::dialogresult ">30 iterations waiting on tk_dialog"
+ return
+ }
+ after 150 {afterbody}
return
}
- after 150 {afterbody}
- return
- }
uplevel #0 {set dialogresult [eval $command]}
}