diff options
author | dgp <dgp@users.sourceforge.net> | 2006-12-01 19:13:35 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-12-01 19:13:35 (GMT) |
commit | e5848333b958d22c28add5aac8171bef0796e899 (patch) | |
tree | f6ac01f1c25b713f99d7867fb40bd785e5febb52 /tests/chan.test | |
parent | 986958b3d40c8667b6f7232cd0d7d7c6987014a6 (diff) | |
download | tcl-e5848333b958d22c28add5aac8171bef0796e899.zip tcl-e5848333b958d22c28add5aac8171bef0796e899.tar.gz tcl-e5848333b958d22c28add5aac8171bef0796e899.tar.bz2 |
* tests/chan.test: Correct timing sensitivity in new test
[Bug 1606860]
Diffstat (limited to 'tests/chan.test')
-rw-r--r-- | tests/chan.test | 7 |
1 files changed, 4 insertions, 3 deletions
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] |