diff options
author | dgp <dgp@users.sourceforge.net> | 2007-11-28 20:30:14 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-11-28 20:30:14 (GMT) |
commit | fdac2b39fea8099117e984579453fdf0d129ae07 (patch) | |
tree | 145610b3ffd3fd9129e9514c6af102ecbab55499 /tests | |
parent | 325853d22a554d03e6347953724621db7e41e891 (diff) | |
download | tcl-fdac2b39fea8099117e984579453fdf0d129ae07.zip tcl-fdac2b39fea8099117e984579453fdf0d129ae07.tar.gz tcl-fdac2b39fea8099117e984579453fdf0d129ae07.tar.bz2 |
merge updates from HEAD
Diffstat (limited to 'tests')
-rw-r--r-- | tests/chan.test | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/chan.test b/tests/chan.test index 1108216..b6375fe 100644 --- a/tests/chan.test +++ b/tests/chan.test @@ -7,7 +7,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: chan.test,v 1.8 2006/12/17 03:44:03 das Exp $ +# RCS: @(#) $Id: chan.test,v 1.8.2.1 2007/11/28 20:30:33 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -37,6 +37,21 @@ test chan-3.1 {chan command: close subcommand} -body { test chan-4.1 {chan command: configure subcommand} -body { chan configure } -returnCodes error -result "wrong # args: should be \"chan configure channelId ?optionName? ?value? ?optionName value?...\"" +test chan-4.2 {chan command: [Bug 800753]} -body { + chan configure stdout -eofchar \u0100 +} -returnCodes error -match glob -result {bad value*} +test chan-4.3 {chan command: [Bug 800753]} -body { + chan configure stdout -eofchar \u0000 +} -returnCodes error -match glob -result {bad value*} +test chan-4.4 {chan command: check valid inValue, no outValue} -body { + chan configure stdout -eofchar [list \x27 {}] +} -returnCodes ok -result {} +test chan-4.5 {chan command: check valid inValue, invalid outValue} -body { + chan configure stdout -eofchar [list \x27 \x80] +} -returnCodes error -match glob -result {bad value for -eofchar:*} +test chan-4.6 {chan command: check no inValue, valid outValue} -body { + chan configure stdout -eofchar [list {} \x27] +} -returnCodes ok -result {} test chan-5.1 {chan command: copy subcommand} -body { chan copy foo |