summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-03-21 13:40:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-03-21 13:40:58 (GMT)
commitf715783b1bff0fe44a894ff26049debf8cb184f2 (patch)
tree0da508a73eb86386acc4e16f2b4c83480660c58e
parent6b106c4d93bfc4a452a3cf9d78aa3ee25761e553 (diff)
downloadtcl-f715783b1bff0fe44a894ff26049debf8cb184f2.zip
tcl-f715783b1bff0fe44a894ff26049debf8cb184f2.tar.gz
tcl-f715783b1bff0fe44a894ff26049debf8cb184f2.tar.bz2
Added comment explaining the "knownBug"
-rw-r--r--tests/iogt.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/iogt.test b/tests/iogt.test
index 3882ecc..3b94747 100644
--- a/tests/iogt.test
+++ b/tests/iogt.test
@@ -916,6 +916,15 @@ test iogt-6.0 {Push back} testchannel {
} {xxx}
test iogt-6.1 {Push back and up} {testchannel knownBug} {
+
+ # 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..."