summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-13 18:49:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-13 18:49:20 (GMT)
commit43a149d1e8f07b88f5947b2425a954ca120c29f4 (patch)
treeb57b0b8196de12dd4e936fb9aaccdd0182e0b308 /tests/io.test
parent999da42537dbc85056dca32fc14e5360cf2bfb04 (diff)
parentc3df58587ce6e9f21b652b23eb7f56f852a326f7 (diff)
downloadtcl-43a149d1e8f07b88f5947b2425a954ca120c29f4.zip
tcl-43a149d1e8f07b88f5947b2425a954ca120c29f4.tar.gz
tcl-43a149d1e8f07b88f5947b2425a954ca120c29f4.tar.bz2
Refactored much management of the BLOCKED and EOF flags into ChanRead() then
began repairing some of the logic about them. Tests iogt-2.* now fail because they've been crafted as experiments recording the fine detail of reflected channel driver calls, and fixing the management of channel flags is changing that. zlib-8.5 also needed adjustment to reflect that an EOF set must come with an empty string read when flags are functioning properly.
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/io.test b/tests/io.test
index d05b882..8a8775e 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -6650,11 +6650,23 @@ test io-52.4 {TclCopyChannel} {fcopy} {
fconfigure $f1 -translation lf -blocking 0
fconfigure $f2 -translation cr -blocking 0
fcopy $f1 $f2 -size 40
- set result [list [fconfigure $f1 -blocking] [fconfigure $f2 -blocking]]
+ set result [list [fblocked $f1] [fconfigure $f1 -blocking] [fconfigure $f2 -blocking]]
+ close $f1
+ close $f2
+ lappend result [file size $path(test1)]
+} {0 0 0 40}
+test io-52.4.1 {TclCopyChannel} {fcopy} {
+ file delete $path(test1)
+ set f1 [open $thisScript]
+ set f2 [open $path(test1) w]
+ fconfigure $f1 -translation lf -blocking 0 -buffersize 10000000
+ fconfigure $f2 -translation cr -blocking 0
+ fcopy $f1 $f2 -size 40
+ set result [list [fblocked $f1] [fconfigure $f1 -blocking] [fconfigure $f2 -blocking]]
close $f1
close $f2
lappend result [file size $path(test1)]
-} {0 0 40}
+} {0 0 0 40}
test io-52.5 {TclCopyChannel, all} {fcopy} {
file delete $path(test1)
set f1 [open $thisScript]