summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index cdaf183..5266d57 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -6497,9 +6497,6 @@ test chan-io-50.6 {testing handler deletion vs reentrant calls} -setup {
set f [open $path(test1) w]
chan close $f
} -constraints testchannelevent -body {
- set f [open $path(test1) r]
- testchannelevent $f add readable [namespace code [list second $f]]
- testchannelevent $f add readable [namespace code [list first $f]]
proc first {f} {
variable u
variable z
@@ -6529,11 +6526,21 @@ test chan-io-50.6 {testing handler deletion vs reentrant calls} -setup {
}
set z ""
set u toplevel
+ # Testing why this test fails on Travis:
+ # The test appears to assume that select will not detect the
+ # new file until update is called.
+ lappend z "1"
+ set f [open $path(test1) r]
+ lappend z "2"
+ testchannelevent $f add readable [namespace code [list second $f]]
+ lappend z "3"
+ testchannelevent $f add readable [namespace code [list first $f]]
+ lappend z "update"
update
set z
} -cleanup {
chan close $f
-} -result [list {first called} {first called not toplevel} \
+} -result [list 1 2 3 update {first called} {first called not toplevel} \
{second called, first time} {second called, second time} \
{first after update}]