summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-03 15:43:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-03 15:43:45 (GMT)
commitd40f0fe1b3a6c3b142ddfa9bdd741f29a8a8e8eb (patch)
tree2e5636e507a5acba9a1a3c9f6f76f336423cff5c /tests/io.test
parent0d231a3919435409be9374f0a792e364e804b20c (diff)
parentca51d20173c55f80a6d14a618d3d95880fb0e4f7 (diff)
downloadtcl-d40f0fe1b3a6c3b142ddfa9bdd741f29a8a8e8eb.zip
tcl-d40f0fe1b3a6c3b142ddfa9bdd741f29a8a8e8eb.tar.gz
tcl-d40f0fe1b3a6c3b142ddfa9bdd741f29a8a8e8eb.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/io.test b/tests/io.test
index 86e426c..912f4c5 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -5946,7 +5946,9 @@ test io-44.4 {FileEventProc procedure: eror in write event} -constraints {
catch {close $f2}
catch {close $f3}
} -result {bad-write {}}
-test io-44.5 {FileEventProc procedure: end of file} {stdio unixExecs openpipe fileevent} {
+test io-44.5 {FileEventProc procedure: end of file} -constraints {
+ stdio unixExecs openpipe fileevent
+} -body {
set f4 [open "|[list [interpreter] $path(cat) << foo]" r]
fileevent $f4 readable [namespace code {
if {[gets $f4 line] < 0} {
@@ -5959,9 +5961,10 @@ test io-44.5 {FileEventProc procedure: end of file} {stdio unixExecs openpipe fi
variable x initial
vwait [namespace which -variable x]
vwait [namespace which -variable x]
- close $f4
set x
-} {initial foo eof}
+} -cleanup {
+ close $f4
+} -result {initial foo eof}
close $f
makeFile "foo bar" foo
@@ -6841,9 +6844,9 @@ test io-50.5 {testing handler deletion vs reentrant calls} -constraints testchan
set z ""
set u toplevel
update
- close $f
set z
} -cleanup {
+ close $f
} -result [list {del calling recursive} {del deleted notcalled} \
{del deleted myself} {del after update}]
test io-50.6 {testing handler deletion vs reentrant calls} -constraints testchannelevent -setup {