From 924f22e2d958a5cc50eff2cd98862bf2270353b3 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Wed, 28 Nov 2007 02:25:22 +0000 Subject: Extra channel tests to check for no -eofchar --- tests/chan.test | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v0.12