summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-11-03 21:04:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-11-03 21:04:24 (GMT)
commit7903c310683834f01564dde909b82e008ea07947 (patch)
tree8c3332dff5bedbcd40d1ab43f2676574601e0a52 /tests/io.test
parent5b84b16e1fee2a7da08f3e3a3f0bb7a0ea5a72a8 (diff)
parent5a0bdb1baf6c35b490aa2d34d5ea5aec3ae66831 (diff)
downloadtcl-7903c310683834f01564dde909b82e008ea07947.zip
tcl-7903c310683834f01564dde909b82e008ea07947.tar.gz
tcl-7903c310683834f01564dde909b82e008ea07947.tar.bz2
Same patch re-enabling read after EOF, but here applied to 8.6.
Likely additional changes needed in the other channel transforms new in 8.6.
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test20
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