diff options
author | dgp <dgp@users.sourceforge.net> | 2014-10-29 14:54:11 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2014-10-29 14:54:11 (GMT) |
commit | 54d28836947092e8b7d97edb969105e54dc2a734 (patch) | |
tree | 68cf64ce6b778fe925517b98a8d38c228866a36a | |
parent | 5a9b116846072317fd5382564d965cba6595d464 (diff) | |
download | tcl-54d28836947092e8b7d97edb969105e54dc2a734.zip tcl-54d28836947092e8b7d97edb969105e54dc2a734.tar.gz tcl-54d28836947092e8b7d97edb969105e54dc2a734.tar.bz2 |
Base test for [5adc350683].
-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 f6690ad..d533957 100644 --- a/tests/io.test +++ b/tests/io.test @@ -8399,6 +8399,26 @@ test io-73.2 {channel Tcl_Obj SetChannelFromAny, bug 2407783} {} { list $code [string map [list $f @@] $msg] } {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 |