summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-12-01 19:13:35 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-12-01 19:13:35 (GMT)
commite5848333b958d22c28add5aac8171bef0796e899 (patch)
treef6ac01f1c25b713f99d7867fb40bd785e5febb52
parent986958b3d40c8667b6f7232cd0d7d7c6987014a6 (diff)
downloadtcl-e5848333b958d22c28add5aac8171bef0796e899.zip
tcl-e5848333b958d22c28add5aac8171bef0796e899.tar.gz
tcl-e5848333b958d22c28add5aac8171bef0796e899.tar.bz2
* tests/chan.test: Correct timing sensitivity in new test
[Bug 1606860]
-rw-r--r--ChangeLog3
-rw-r--r--tests/chan.test7
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b19360d..9798e0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-12-01 Don Porter <dgp@users.sourceforge.net>
+ * tests/chan.test: Correct timing sensitivity in new test
+ [Bug 1606860]
+
TIP#287 IMPLEMENTATION
* doc/chan.n: New subcommand [chan pending].
diff --git a/tests/chan.test b/tests/chan.test
index a4d2f8e..0132412 100644
--- a/tests/chan.test
+++ b/tests/chan.test
@@ -7,7 +7,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: chan.test,v 1.6 2006/12/01 15:55:45 dgp Exp $
+# RCS: @(#) $Id: chan.test,v 1.7 2006/12/01 19:13:35 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -153,13 +153,14 @@ test chan-16.9 {chan command: pending input subcommand} -setup {
lappend ::chan-16.9-data [string range $data 0 2]
lappend ::chan-16.9-data [string range $data end-2 end]
set ::chan-16.9-done 1
- }
+ } else {
+ after idle chan-16.9-client
+ }
}
proc chan-16.9-client {} {
chan puts -nonewline $::client ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890
chan flush $::client
- after 100 chan-16.9-client
}
set ::server [socket -server chan-16.9-accept -myaddr 127.0.0.1 0]