summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-05-09 16:39:08 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-05-09 16:39:08 (GMT)
commit7840d3a9b7446223dd56ead5c01e664f5c8f0553 (patch)
treefb0d0d49ffacfb7690808ab9b783f22a3250c9b9 /tests
parentc42ec3968ccbb9f010b930dad483f765eaa85791 (diff)
parentf008e78ace0135efe56f81d05155be120472df7e (diff)
downloadtcl-7840d3a9b7446223dd56ead5c01e664f5c8f0553.zip
tcl-7840d3a9b7446223dd56ead5c01e664f5c8f0553.tar.gz
tcl-7840d3a9b7446223dd56ead5c01e664f5c8f0553.tar.bz2
Added comment explaining the "knownBug" in iogt-6.1
Diffstat (limited to 'tests')
-rw-r--r--tests/iogt.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/iogt.test b/tests/iogt.test
index 50034de..33a6425 100644
--- a/tests/iogt.test
+++ b/tests/iogt.test
@@ -839,6 +839,15 @@ test iogt-6.0 {Push back} -constraints testchannel -body {
close $f
} -result {xxx}
test iogt-6.1 {Push back and up} -constraints {testchannel knownBug} -body {
+
+ # This test demonstrates the bug/misfeature in the stacked
+ # channel implementation that data can be discarded if it is
+ # read into the buffers of one channel in the stack, and then
+ # that channel is popped before anything above it reads.
+ #
+ # This bug can be worked around by always setting -buffersize
+ # to 1, but who wants to do that?
+
set f [open $path(dummy) r]
# contents of dummy = "abcdefghi..."
read $f 3; # skip behind "abc"