diff options
author | dgp <dgp@users.sourceforge.net> | 2014-05-05 17:18:51 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-05-05 17:18:51 (GMT) |
commit | b8c001575a86863e6ee5002f7232c8f9cab7b274 (patch) | |
tree | dde5c78bdea584270f2bdea7eabe96e75ad34968 /tests/iogt.test | |
parent | acdf0e593a1a9ab5f04882544ee898a6f6d2d251 (diff) | |
download | tcl-b8c001575a86863e6ee5002f7232c8f9cab7b274.zip tcl-b8c001575a86863e6ee5002f7232c8f9cab7b274.tar.gz tcl-b8c001575a86863e6ee5002f7232c8f9cab7b274.tar.bz2 |
Segfaulting test (backport of iortrans-5.11).
Diffstat (limited to 'tests/iogt.test')
-rw-r--r-- | tests/iogt.test | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/iogt.test b/tests/iogt.test index d81acd6..abe4246 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,16 @@ 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 + set x +} {} test iogt-3.0 {Tcl_Channel valid after stack/unstack, fevent handling} \ {testchannel unknownFailure} { |