summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjingham <jingham>1999-03-22 06:43:05 (GMT)
committerjingham <jingham>1999-03-22 06:43:05 (GMT)
commitbe93c811883924eb97ea5274181efff64a7f41dd (patch)
tree572731f2fb420ad20d65c6cafaee22bb9f373195
parentd7a5513e50d8a3b9004de9e0e878dd896be0ad8b (diff)
downloadtk-be93c811883924eb97ea5274181efff64a7f41dd.zip
tk-be93c811883924eb97ea5274181efff64a7f41dd.tar.gz
tk-be93c811883924eb97ea5274181efff64a7f41dd.tar.bz2
On the Macintosh, call update idletasks at the end of each test. Since the test results are written into a text widget, if you don't do an update, the results will lag behind the tests, which can be confusing.
-rw-r--r--tests/defs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/defs b/tests/defs
index cde64fc..8a86451 100644
--- a/tests/defs
+++ b/tests/defs
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: defs,v 1.3 1998/12/04 04:19:12 hershey Exp $
+# RCS: @(#) $Id: defs,v 1.3.2.1 1999/03/22 06:43:05 jingham Exp $
if {![info exists VERBOSE]} {
set VERBOSE 0
@@ -246,6 +246,10 @@ proc test {name description script answer args} {
puts stdout "$answer"
puts stdout "---- $name FAILED"
}
+ if {[string compare $::tcl_platform(platform) macintosh] == 0} {
+ # Force the text to be drawn even if the tests are not updating.
+ update idletasks
+ }
}
proc dotests {file args} {