summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-01-29 18:36:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-01-29 18:36:45 (GMT)
commite284f17cb1e7ab285815f492702571fd10211764 (patch)
treef1060adc2d501c6b26fd2052102092da4ab234a1 /tests
parent343cc995c69b2d0d5307106d6a70573682d4fe37 (diff)
parent9f39fc4286082e4e7a7b52711f7b37c8c6fddf7c (diff)
downloadtcl-e284f17cb1e7ab285815f492702571fd10211764.zip
tcl-e284f17cb1e7ab285815f492702571fd10211764.tar.gz
tcl-e284f17cb1e7ab285815f492702571fd10211764.tar.bz2
Test for bug [08872796bc].
Diffstat (limited to 'tests')
-rw-r--r--tests/io.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/io.test b/tests/io.test
index cd8b014..06ae81d 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -8523,6 +8523,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