summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-06-01 18:08:13 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-06-01 18:08:13 (GMT)
commitee58fa3ec8ce55e6aa3926fdec2e9d6b608f4247 (patch)
treed554f6d49500de3617d07b590249041ea3749cb9 /tests
parent8eaf188a905aacf1f15871cb362492f1df77e7ef (diff)
downloadtcl-ee58fa3ec8ce55e6aa3926fdec2e9d6b608f4247.zip
tcl-ee58fa3ec8ce55e6aa3926fdec2e9d6b608f4247.tar.gz
tcl-ee58fa3ec8ce55e6aa3926fdec2e9d6b608f4247.tar.bz2
* tests/io.test:
* tests/iogt.test: Tests cases that set invalid -buffersize settings on channels either wrapped in a catch or modified to a valid range. The assertion results were not modified to show that the behavior of Tcl_SetChannelBufferSize is unchanged.
Diffstat (limited to 'tests')
-rw-r--r--tests/io.test14
-rw-r--r--tests/iogt.test6
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/io.test b/tests/io.test
index b8af0f3..9fc72c9 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.53 2004/05/25 18:14:33 dgp Exp $
+# RCS: @(#) $Id: io.test,v 1.54 2004/06/01 18:08:13 davygrvy Exp $
if {[catch {package require tcltest 2}]} {
puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -4788,15 +4788,15 @@ test io-38.2 {Tcl_SetChannelBufferSize, Tcl_GetChannelBufferSize} {
lappend l [fconfigure $f -buffersize]
fconfigure $f -buffersize 10000
lappend l [fconfigure $f -buffersize]
- fconfigure $f -buffersize 1
+ catch {fconfigure $f -buffersize 1}
lappend l [fconfigure $f -buffersize]
- fconfigure $f -buffersize -1
+ catch {fconfigure $f -buffersize -1}
lappend l [fconfigure $f -buffersize]
- fconfigure $f -buffersize 0
+ catch {fconfigure $f -buffersize 0}
lappend l [fconfigure $f -buffersize]
fconfigure $f -buffersize 100000
lappend l [fconfigure $f -buffersize]
- fconfigure $f -buffersize 10000000
+ catch {fconfigure $f -buffersize 10000000}
lappend l [fconfigure $f -buffersize]
close $f
set l
@@ -4965,7 +4965,7 @@ test io-39.10 {Tcl_SetChannelOption, blocking mode} {stdio openpipe} {
test io-39.11 {Tcl_SetChannelOption, Tcl_GetChannelOption, buffer size} {
file delete $path(test1)
set f [open $path(test1) w]
- fconfigure $f -buffersize -10
+ catch {fconfigure $f -buffersize -10}
set x [fconfigure $f -buffersize]
close $f
set x
@@ -4973,7 +4973,7 @@ test io-39.11 {Tcl_SetChannelOption, Tcl_GetChannelOption, buffer size} {
test io-39.12 {Tcl_SetChannelOption, Tcl_GetChannelOption buffer size} {
file delete $path(test1)
set f [open $path(test1) w]
- fconfigure $f -buffersize 10000000
+ catch {fconfigure $f -buffersize 10000000}
set x [fconfigure $f -buffersize]
close $f
set x
diff --git a/tests/iogt.test b/tests/iogt.test
index 8b75442..08bc328 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.8 2003/11/14 20:44:46 dgp Exp $
+# RCS: @(#) $Id: iogt.test,v 1.9 2004/06/01 18:08:14 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 unixOnly} {
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 unixOnly} {
audit_flow aout -attach $fout
fconfigure $fin -buffersize 10
- fconfigure $fout -buffersize 5
+ fconfigure $fout -buffersize 10
fcopy $fin $fout