summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-18 13:33:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-18 13:33:04 (GMT)
commit5dfe6151b2c83fac63e73c24a45797c938c2fa5b (patch)
tree61255ed332caa0b88318f321b8415885e69d455e /tests/io.test
parenta5455c136a2b022903089f85ebc28327fe31898e (diff)
parent6560454489df369db2c1edeaaf82a094efda0115 (diff)
downloadtcl-5dfe6151b2c83fac63e73c24a45797c938c2fa5b.zip
tcl-5dfe6151b2c83fac63e73c24a45797c938c2fa5b.tar.gz
tcl-5dfe6151b2c83fac63e73c24a45797c938c2fa5b.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/io.test b/tests/io.test
index c78492b..ca37870 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -6935,7 +6935,7 @@ test io-50.5 {testing handler deletion vs reentrant calls} -constraints {testcha
} -cleanup {
close $f
} -result [list {del calling recursive} {del deleted notcalled} \
- {del deleted myself} {del after recursive}]
+ {del deleted myself} {del after recursive}]
test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testchannelevent testservicemode} -setup {
file delete $path(test1)
} -body {
@@ -6944,6 +6944,7 @@ test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testcha
proc first {f} {
variable u
variable z
+ variable done
if {"$u" == "toplevel"} {
lappend z "first called"
set u first
@@ -6951,6 +6952,7 @@ test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testcha
vwait z
after cancel $timer
lappend z "first after toplevel"
+ set done 1
} else {
lappend z "first called not toplevel"
}
@@ -6972,19 +6974,24 @@ test io-50.6 {testing handler deletion vs reentrant calls} -constraints {testcha
}
set z ""
set u toplevel
+ set done 0
testservicemode 0
set f [open $path(test1) r]
testchannelevent $f add readable [namespace code [list second $f]]
testchannelevent $f add readable [namespace code [list first $f]]
testservicemode 1
update
+ if {!$done} {
+ set timer2 [after 200 set done 1]
+ vwait done
+ after cancel $timer2
+ }
set z
} -cleanup {
close $f
} -result [list {first called} {first called not toplevel} \
{second called, first time} {second called, second time} \
{first after toplevel}]
-
test io-51.1 {Test old socket deletion on Macintosh} {socket} {
set x 0
set result ""