diff options
author | andreask <andreask> | 2014-11-06 18:38:36 (GMT) |
---|---|---|
committer | andreask <andreask> | 2014-11-06 18:38:36 (GMT) |
commit | 10dc783c93904a502f6ad58d7780b5c4b8b88c63 (patch) | |
tree | c8ac936da5fd2bc1d67b309ab88bd64ee0ef1609 /tests/io.test | |
parent | 717a98747db66b00ae22dad0e3fc862ba814a816 (diff) | |
parent | 0c027bb7066b06799c1eb4b062985bf37facc302 (diff) | |
download | tcl-10dc783c93904a502f6ad58d7780b5c4b8b88c63.zip tcl-10dc783c93904a502f6ad58d7780b5c4b8b88c63.tar.gz tcl-10dc783c93904a502f6ad58d7780b5c4b8b88c63.tar.bz2 |
Merged latest trunk work (especially changes to eof handling) into the RC.
Diffstat (limited to 'tests/io.test')
-rw-r--r-- | tests/io.test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/io.test b/tests/io.test index 33f91bd..b09d55a 100644 --- a/tests/io.test +++ b/tests/io.test @@ -8465,6 +8465,26 @@ test io-73.2 {channel Tcl_Obj SetChannelFromAny, bug 2407783} -setup { close $f } -result {1 {can not find channel named "@@"}} +test io-73.3 {[5adc350683] [gets] after EOF} -setup { + set fn [makeFile {} io-73.3] + set rfd [open $fn r] + set wfd [open $fn a] + chan configure $wfd -buffering line + read $rfd +} -body { + set result [eof $rfd] + puts $wfd "more data" + lappend result [eof $rfd] + lappend result [gets $rfd] + lappend result [eof $rfd] + lappend result [gets $rfd] + lappend result [eof $rfd] +} -cleanup { + close $wfd + close $rfd + removeFile io-73.3 +} -result {1 1 {more data} 0 {} 1} + # ### ### ### ######### ######### ######### # cleanup |