summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-06 14:10:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-06 14:10:57 (GMT)
commit738fe7424e7be63a02664f8cef5ccefe0b0974c1 (patch)
treeec1c3bc670e24677d30b90950c4a69d2716f9fff /tests
parent684f4f5c83268d2894a7606620e81f0ca87e5a17 (diff)
parent0fc3bdcc7e6bd2903a1e84017073bf39dff8a3ad (diff)
downloadtcl-738fe7424e7be63a02664f8cef5ccefe0b0974c1.zip
tcl-738fe7424e7be63a02664f8cef5ccefe0b0974c1.tar.gz
tcl-738fe7424e7be63a02664f8cef5ccefe0b0974c1.tar.bz2
merge 8.5
Diffstat (limited to 'tests')
-rw-r--r--tests/iogt.test21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/iogt.test b/tests/iogt.test
index d81acd6..d4291b3 100644
--- a/tests/iogt.test
+++ b/tests/iogt.test
@@ -251,7 +251,17 @@ proc id_torture {chan op data} {
clear_read {;#ignore}
flush/write -
flush/read {}
- write -
+ write {
+ global level
+ if {$level} {
+ return
+ }
+ incr level
+ testchannel unstack $chan
+ testchannel transform $chan \
+ -command [namespace code [list id_torture $chan]]
+ return $data
+ }
read {
testchannel unstack $chan
testchannel transform $chan \
@@ -665,6 +675,15 @@ test iogt-2.4 {basic I/O, mixed trail} {testchannel} {
close $fh
set x
} {}
+test iogt-2.5 {basic I/O, mixed trail} {testchannel} {
+ set ::level 0
+ set fh [open $path(dummyout) w]
+ torture -attach $fh
+ puts -nonewline $fh abcdef
+ flush $fh
+ testchannel unstack $fh
+ close $fh
+} {}
test iogt-3.0 {Tcl_Channel valid after stack/unstack, fevent handling} \
{testchannel unknownFailure} {