diff options
author | andreas_kupries <akupries@shaw.ca> | 2001-09-13 19:07:18 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2001-09-13 19:07:18 (GMT) |
commit | 52821e0f27d0aa164d7f729fbe6d8098bbfa39dc (patch) | |
tree | 546e7d266490a41408f6f81037e3d6dfaa7f0efc | |
parent | c916fe379954795d7ee50db527b7e43f110e0672 (diff) | |
download | tcl-52821e0f27d0aa164d7f729fbe6d8098bbfa39dc.zip tcl-52821e0f27d0aa164d7f729fbe6d8098bbfa39dc.tar.gz tcl-52821e0f27d0aa164d7f729fbe6d8098bbfa39dc.tar.bz2 |
* tests/ioCmd.test: Changed the computation of the result for
iocmd-8.1[123] so that the tests work for single- and
multi-process execution of the testsuite. Depending on the
choice of the user stdout is a tty or not and thus reports
different channel options. Fixes [460993] reported by Don
Porter.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | tests/ioCmd.test | 25 |
2 files changed, 30 insertions, 5 deletions
@@ -1,3 +1,12 @@ +2001-09-13 Andreas Kupries <andreas_kupries@users.sourceforge.net> + + * tests/ioCmd.test: Changed the computation of the result for + iocmd-8.1[123] so that the tests work for single- and + multi-process execution of the testsuite. Depending on the + choice of the user stdout is a tty or not and thus reports + different channel options. Fixes [460993] reported by Don + Porter. + 2001-09-13 Miguel Sofer <msofer@users.sourceforge.net> * doc/ParseCmd.3: @@ -11,7 +20,6 @@ same duties but adheres to the standard return convention for Tcl evaluations; the deprecated function could only return TCL_OK or TCL_ERROR, which caused [Bug: 219384] and [Bug: 455151]. - 2001-09-12 Mo DeJong <mdejong@users.sourceforge.net> diff --git a/tests/ioCmd.test b/tests/ioCmd.test index 38a3e32..79d6c7c 100644 --- a/tests/ioCmd.test +++ b/tests/ioCmd.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: ioCmd.test,v 1.9 2001/07/31 19:12:07 vincentdarley Exp $ +# RCS: @(#) $Id: ioCmd.test,v 1.10 2001/09/13 19:07:18 andreas_kupries Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -237,15 +237,32 @@ test iocmd-8.9 {fconfigure command} { test iocmd-8.10 {fconfigure command} { list [catch {fconfigure a b} msg] $msg } {1 {can not find channel named "a"}} + +makeFile {} fconfigure.dummy + test iocmd-8.11 {fconfigure command} { - list [catch {fconfigure stdout -froboz blarfo} msg] $msg + set chan [open fconfigure.dummy r] + set res [list [catch {fconfigure $chan -froboz blarfo} msg] $msg] + close $chan + set res } {1 {bad option "-froboz": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, or -translation}} + test iocmd-8.12 {fconfigure command} { - list [catch {fconfigure stdout -b blarfo} msg] $msg + set chan [open fconfigure.dummy r] + set res [list [catch {fconfigure $chan -b blarfo} msg] $msg] + close $chan + set res } {1 {bad option "-b": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, or -translation}} + test iocmd-8.13 {fconfigure command} { - list [catch {fconfigure stdout -buffer blarfo} msg] $msg + set chan [open fconfigure.dummy r] + set res [list [catch {fconfigure $chan -buffer blarfo} msg] $msg] + close $chan + set res } {1 {bad option "-buffer": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, or -translation}} + +removeFile fconfigure.dummy + test iocmd-8.14 {fconfigure command} { fconfigure stdin -buffers } 4096 |