summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
diff options
context:
space:
mode:
authorculler <culler>2020-08-07 13:12:21 (GMT)
committerculler <culler>2020-08-07 13:12:21 (GMT)
commitf460900f9f25ca6b02f7e5de803eb63a84a2d12a (patch)
treef5c14657e4856ef89adf74b9781b5eab5c7b9f16 /tests/chanio.test
parent9557127009db74d0f4196e17d6cf1f536ef73547 (diff)
downloadtcl-f460900f9f25ca6b02f7e5de803eb63a84a2d12a.zip
tcl-f460900f9f25ca6b02f7e5de803eb63a84a2d12a.tar.gz
tcl-f460900f9f25ca6b02f7e5de803eb63a84a2d12a.tar.bz2
Experiment with io-50.1 on Travis
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 5266d57..7ffe492 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -6526,16 +6526,13 @@ 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"
+ # This test assume that select will not detect the new open file
+ # until the update command runs. This is not guaranteed, but it
+ # seems to help if we make sure that the calls to testchannelevent
+ # immediately follow the call to open.
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 {