summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-03 15:46:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-03 15:46:27 (GMT)
commit0f06b1b667747553dfcac3b037cd6d5fe2cf262d (patch)
tree56abd292390e485e4fe3a5cce515b842d9ff646b /tests/chanio.test
parentc1c4367262900750366b547390eeccc185677242 (diff)
parentca51d20173c55f80a6d14a618d3d95880fb0e4f7 (diff)
downloadtcl-0f06b1b667747553dfcac3b037cd6d5fe2cf262d.zip
tcl-0f06b1b667747553dfcac3b037cd6d5fe2cf262d.tar.gz
tcl-0f06b1b667747553dfcac3b037cd6d5fe2cf262d.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index 67e0f24..07a0d8d 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -5642,7 +5642,9 @@ test chan-io-44.4 {FileEventProc procedure: eror in write event} -setup {
catch {chan close $f2}
catch {chan close $f3}
} -result {bad-write {}}
-test chan-io-44.5 {FileEventProc procedure: end of file} {stdio unixExecs openpipe fileevent} {
+test chan-io-44.5 {FileEventProc procedure: end of file} -constraints {
+ stdio unixExecs openpipe fileevent
+} -body {
set f4 [openpipe r $path(cat) << foo]
chan event $f4 readable [namespace code {
if {[chan gets $f4 line] < 0} {
@@ -5655,9 +5657,10 @@ test chan-io-44.5 {FileEventProc procedure: end of file} {stdio unixExecs openpi
variable x initial
vwait [namespace which -variable x]
vwait [namespace which -variable x]
- chan close $f4
set x
-} {initial foo eof}
+} -cleanup {
+ chan close $f4
+} -result {initial foo eof}
chan close $f
makeFile "foo bar" foo
@@ -6382,7 +6385,7 @@ test chan-io-50.1 {testing handler deletion} -setup {
}]
variable z not_called
update
- return $z
+ set z
} -cleanup {
chan close $f
} -result called
@@ -6450,7 +6453,7 @@ test chan-io-50.4 {testing handler deletion vs reentrant calls} -setup {
variable u toplevel
variable z ""
update
- return $z
+ set z
} -cleanup {
chan close $f
} -result {{delrecursive calling recursive} {delrecursive deleting recursive}}
@@ -6484,7 +6487,7 @@ test chan-io-50.5 {testing handler deletion vs reentrant calls} -setup {
set z ""
set u toplevel
update
- return $z
+ set z
} -cleanup {
chan close $f
} -result [list {del calling recursive} {del deleted notcalled} \
@@ -6527,7 +6530,7 @@ test chan-io-50.6 {testing handler deletion vs reentrant calls} -setup {
set z ""
set u toplevel
update
- return $z
+ set z
} -cleanup {
chan close $f
} -result [list {first called} {first called not toplevel} \