diff options
author | dgp <dgp@users.sourceforge.net> | 2015-01-29 18:34:50 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-01-29 18:34:50 (GMT) |
commit | 9f39fc4286082e4e7a7b52711f7b37c8c6fddf7c (patch) | |
tree | 7b40cf11779bc91135ce63238b7fdef3145ee30e | |
parent | 36c44d8572394858bf7e0956c4b8e1eecc333eb6 (diff) | |
download | tcl-9f39fc4286082e4e7a7b52711f7b37c8c6fddf7c.zip tcl-9f39fc4286082e4e7a7b52711f7b37c8c6fddf7c.tar.gz tcl-9f39fc4286082e4e7a7b52711f7b37c8c6fddf7c.tar.bz2 |
Test for bug [08872796bc].
-rw-r--r-- | tests/io.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/io.test b/tests/io.test index d533957..e4dc522 100644 --- a/tests/io.test +++ b/tests/io.test @@ -8419,6 +8419,25 @@ test io-73.3 {[5adc350683] [gets] after EOF} -setup { removeFile io-73.3 } -result {1 1 {more data} 0 {} 1} +test io-73.4 {[5adc350683] [read] after EOF} -setup { + set fn [makeFile {} io-73.4] + 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 [read $rfd] + lappend result [eof $rfd] +} -cleanup { + close $wfd + close $rfd + removeFile io-73.4 +} -result {1 1 {more data +} 1} + # ### ### ### ######### ######### ######### # cleanup |