summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2005-04-14 02:41:15 (GMT)
committerdavygrvy <davygrvy@pobox.com>2005-04-14 02:41:15 (GMT)
commitdec511f3574c620e2592c7faabb11e5b4e1c1ed4 (patch)
treebdf861dcadd30d932efddbb608067e92e864194e /tests
parenta9551a08af343c0da4bb743594a7f9adc8d99320 (diff)
downloadtcl-dec511f3574c620e2592c7faabb11e5b4e1c1ed4.zip
tcl-dec511f3574c620e2592c7faabb11e5b4e1c1ed4.tar.gz
tcl-dec511f3574c620e2592c7faabb11e5b4e1c1ed4.tar.bz2
* generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limit
* tests/io.test: changed from ten bytes to one byte. Need for this change was proven by Ross Cartlidge <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed by starting a child process that was intended to continue reading from stdin. Even with -buffersize set to one, nine chars were getting lost by buffer size over reading for the native read().
Diffstat (limited to 'tests')
-rw-r--r--tests/io.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/io.test b/tests/io.test
index 8eec145..cb831f8 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: io.test,v 1.66 2005/01/27 00:23:29 andreas_kupries Exp $
+# RCS: @(#) $Id: io.test,v 1.67 2005/04/14 02:41:34 davygrvy Exp $
if {[catch {package require tcltest 2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -4792,7 +4792,7 @@ test io-38.2 {Tcl_SetChannelBufferSize, Tcl_GetChannelBufferSize} {
lappend l [fconfigure $f -buffersize]
close $f
set l
-} {4096 10000 10000 10000 10000 100000 100000}
+} {4096 10000 1 1 1 100000 100000}
test io-38.3 {Tcl_SetChannelBufferSize, changing buffersize between reads} {
# This test crashes the interp if Bug #427196 is not fixed