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)
commit643d4e096b00185e39709a232beddb940a2521a6 (patch)
treefb0d0d49ffacfb7690808ab9b783f22a3250c9b9 /tests/iogt.test
parent54a7fb14315e91375afebda43bf800baf5f5f46b (diff)
parent8b4cb6f5d95d707abacdcfbcb75153cd12edb59f (diff)
downloadtcl-643d4e096b00185e39709a232beddb940a2521a6.zip
tcl-643d4e096b00185e39709a232beddb940a2521a6.tar.gz
tcl-643d4e096b00185e39709a232beddb940a2521a6.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"