summaryrefslogtreecommitdiffstats
path: root/tests/iogt.test
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)
commitf7e6ff593fa2b6486446275c6a6aebde50ad239c (patch)
treefb0d0d49ffacfb7690808ab9b783f22a3250c9b9 /tests/iogt.test
parentb19cb29e257e0292729bf6a261b3ed71320e96ab (diff)
parentec4378d0790af497f5d163da00a236d3bbf7dd7f (diff)
downloadtcl-f7e6ff593fa2b6486446275c6a6aebde50ad239c.zip
tcl-f7e6ff593fa2b6486446275c6a6aebde50ad239c.tar.gz
tcl-f7e6ff593fa2b6486446275c6a6aebde50ad239c.tar.bz2
Added comment explaining the "knownBug" in iogt-6.1
Diffstat (limited to 'tests/iogt.test')
-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"