summaryrefslogtreecommitdiffstats
path: root/tests/ioCmd.test
diff options
context:
space:
mode:
authorhershey <hershey@noemail.net>1999-05-18 20:17:58 (GMT)
committerhershey <hershey@noemail.net>1999-05-18 20:17:58 (GMT)
commit0d94080f99e6c2252b24b576d36828de0bc813a6 (patch)
tree409b2a7ccc3135256e3421175792dd176c0e2293 /tests/ioCmd.test
parent25faa3ea6ed6fc9a742c54476a4d3897fd1d1dfb (diff)
downloadtcl-0d94080f99e6c2252b24b576d36828de0bc813a6.zip
tcl-0d94080f99e6c2252b24b576d36828de0bc813a6.tar.gz
tcl-0d94080f99e6c2252b24b576d36828de0bc813a6.tar.bz2
added -encoding to the list of legal options used in the error message when
a bad option is used. Because the fconfigure command is configurable (so more option can be added), the error string is hardcoded. FossilOrigin-Name: 22239ff421cec41bd11f0bfaf86a68a6e665b1a1
Diffstat (limited to 'tests/ioCmd.test')
-rw-r--r--tests/ioCmd.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index bb05635..3ff3cb5 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.4 1999/05/06 18:46:43 stanton Exp $
+# RCS: @(#) $Id: ioCmd.test,v 1.5 1999/05/18 20:18:38 hershey Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -198,7 +198,7 @@ test iocmd-8.4 {fconfigure command} {
set x [list [catch {fconfigure $f1 froboz} msg] $msg]
close $f1
set x
-} {1 {bad option "froboz": should be one of -blocking, -buffering, -buffersize, -eofchar, or -translation}}
+} {1 {bad option "froboz": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, or -translation}}
test iocmd-8.5 {fconfigure command} {
list [catch {fconfigure stdin -buffering froboz} msg] $msg
} {1 {bad value for -buffering: must be one of full, line, or none}}
@@ -238,13 +238,13 @@ test iocmd-8.10 {fconfigure command} {
} {1 {can not find channel named "a"}}
test iocmd-8.11 {fconfigure command} {
list [catch {fconfigure stdout -froboz blarfo} msg] $msg
-} {1 {bad option "-froboz": should be one of -blocking, -buffering, -buffersize, -eofchar, or -translation}}
+} {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
-} {1 {bad option "-b": should be one of -blocking, -buffering, -buffersize, -eofchar, or -translation}}
+} {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
-} {1 {bad option "-buffer": should be one of -blocking, -buffering, -buffersize, -eofchar, or -translation}}
+} {1 {bad option "-buffer": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, or -translation}}
test iocmd-8.14 {fconfigure command} {
fconfigure stdin -buffers
} 4096
@@ -270,7 +270,7 @@ test iocmd-8.15 {fconfigure command / tcp channel} {socket} {
set r [list [catch {fconfigure $cli -blah} msg] $msg];
iocmdSSHTDWN
set r;
-} {1 {bad option "-blah": should be one of -blocking, -buffering, -buffersize, -eofchar, -translation, -peername, or -sockname}}
+} {1 {bad option "-blah": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, -translation, -peername, or -sockname}}
test iocmd-8.16 {fconfigure command / tcp channel} {socket} {
iocmdSSETUP
set r [expr [lindex [fconfigure $cli -peername] 2]==$port];
@@ -295,14 +295,14 @@ test iocmd-8.18 {fconfigure command / unix tty channel} {nonPortable unixOnly} {
set r [list [catch {fconfigure $tty -blah blih} msg] $msg];
close $tty;
set r;
-} {1 {bad option "-blah": should be one of -blocking, -buffering, -buffersize, -eofchar, -translation, or -mode}}
+} {1 {bad option "-blah": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, -translation, or -mode}}
test iocmd-8.19 {fconfigure command / win tty channel} {nonPortable pcOnly} {
# might fail if com1 is unavailable
set tty [open com1]
set r [list [catch {fconfigure $tty -blah blih} msg] $msg];
close $tty;
set r;
-} {1 {bad option "-blah": should be one of -blocking, -buffering, -buffersize, -eofchar, -translation, or -mode}}
+} {1 {bad option "-blah": should be one of -blocking, -buffering, -buffersize, -encoding, -eofchar, -translation, or -mode}}
test iocmd-9.1 {eof command} {
list [catch {eof} msg] $msg $errorCode