summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-26 14:54:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-26 14:54:47 (GMT)
commit1f7a1beab25bccf98fa6643e73672de5fb5b5fd1 (patch)
tree09340b460b328cfa5d6ea5726cb753fce70fe10b /tests
parent7aa8eec8976c27e9a6f3e3d39f0008e6fb1b063d (diff)
parent43d2fdc86c454dc83a6fe24125d0fd1188cc1bfa (diff)
downloadtcl-1f7a1beab25bccf98fa6643e73672de5fb5b5fd1.zip
tcl-1f7a1beab25bccf98fa6643e73672de5fb5b5fd1.tar.gz
tcl-1f7a1beab25bccf98fa6643e73672de5fb5b5fd1.tar.bz2
Merge 8.6
Diffstat (limited to 'tests')
-rw-r--r--tests/chanio.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 46a0c06..4e6fcc1 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -6379,12 +6379,16 @@ test chan-io-50.1 {testing handler deletion} -setup {
set f [open $path(test1) w]
chan close $f
set f [open $path(test1) r]
+ variable z not_called
+ set timer [after 50 lappend z timeout]
+ testservicemode 0
testchannelevent $f add readable [namespace code {
variable z called
testchannelevent $f delete 0
}]
- variable z not_called
- update
+ testservicemode 1
+ vwait z
+ after cancel $timer
set z
} -cleanup {
chan close $f