From e5848333b958d22c28add5aac8171bef0796e899 Mon Sep 17 00:00:00 2001 From: dgp Date: Fri, 1 Dec 2006 19:13:35 +0000 Subject: * tests/chan.test: Correct timing sensitivity in new test [Bug 1606860] --- ChangeLog | 3 +++ tests/chan.test | 7 ++++--- 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 + * 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] -- cgit v0.12