summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2007-11-28 02:25:22 (GMT)
committerpatthoyts <patthoyts@noemail.net>2007-11-28 02:25:22 (GMT)
commit944ec9106a61771fe00149304aa27003311e3d05 (patch)
treee692903d0e9c3b123f7126faaac7f99bb813df0b /tests
parent7167c2a220c2b6563e12cfb5611d1977c8123c1e (diff)
downloadtcl-944ec9106a61771fe00149304aa27003311e3d05.zip
tcl-944ec9106a61771fe00149304aa27003311e3d05.tar.gz
tcl-944ec9106a61771fe00149304aa27003311e3d05.tar.bz2
Extra channel tests to check for no -eofchar
FossilOrigin-Name: 18424174d28f2263466f3b5c5ee4628e84ebbb01
Diffstat (limited to 'tests')
-rw-r--r--tests/chan.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/chan.test b/tests/chan.test
index f86ffb5..4e9ada0 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.9 2007/11/27 19:48:13 dgp Exp $
+# RCS: @(#) $Id: chan.test,v 1.10 2007/11/28 02:25:22 patthoyts Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -43,6 +43,15 @@ test chan-4.2 {chan command: [Bug 800753]} -body {
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