summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2005-04-14 04:43:51 (GMT)
committerdavygrvy <davygrvy@pobox.com>2005-04-14 04:43:51 (GMT)
commitcbc0b3c930089c8d255b4ff129ee8ef971592b00 (patch)
tree6b4646621b96456754f07a41cceac378fdba67d7 /tests
parent40376549ba9575ce6c42af1a9299c922ad8c3808 (diff)
downloadtcl-cbc0b3c930089c8d255b4ff129ee8ef971592b00.zip
tcl-cbc0b3c930089c8d255b4ff129ee8ef971592b00.tar.gz
tcl-cbc0b3c930089c8d255b4ff129ee8ef971592b00.tar.bz2
* generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limit
* tests/io.test: changed from ten bytes to one byte. Need * tests/iogt.test: 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 the buffersize over reading for the native read() caused by [read].
Diffstat (limited to 'tests')
-rw-r--r--tests/iogt.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/iogt.test b/tests/iogt.test
index 53fd737..fe2c9fa 100644
--- a/tests/iogt.test
+++ b/tests/iogt.test
@@ -10,7 +10,7 @@
# Copyright (c) 2000 Andreas Kupries.
# All rights reserved.
#
-# RCS: @(#) $Id: iogt.test,v 1.11 2004/06/23 15:36:57 dkf Exp $
+# RCS: @(#) $Id: iogt.test,v 1.12 2005/04/14 04:43:51 davygrvy Exp $
if {[catch {package require tcltest 2.1}]} {
puts stderr "Skipping tests in [info script]. tcltest 2.1 required."
@@ -498,7 +498,7 @@ test iogt-2.1 {basic I/O, operation trail} {testchannel unix} {
audit_ops aout -attach $fout
fconfigure $fin -buffersize 10
- fconfigure $fout -buffersize 5
+ fconfigure $fout -buffersize 10
fcopy $fin $fout
@@ -548,7 +548,7 @@ test iogt-2.2 {basic I/O, data trail} {testchannel unix} {
audit_flow aout -attach $fout
fconfigure $fin -buffersize 10
- fconfigure $fout -buffersize 5
+ fconfigure $fout -buffersize 10
fcopy $fin $fout