summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2007-11-28 02:25:22 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2007-11-28 02:25:22 (GMT)
commit924f22e2d958a5cc50eff2cd98862bf2270353b3 (patch)
treee692903d0e9c3b123f7126faaac7f99bb813df0b /tests
parent15f6b9bedb311af89a580add8b92baae387a617e (diff)
downloadtcl-924f22e2d958a5cc50eff2cd98862bf2270353b3.zip
tcl-924f22e2d958a5cc50eff2cd98862bf2270353b3.tar.gz
tcl-924f22e2d958a5cc50eff2cd98862bf2270353b3.tar.bz2
Extra channel tests to check for no -eofchar
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