summaryrefslogtreecommitdiffstats
path: root/tests/ioCmd.test
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-04-04 17:19:40 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-04-04 17:19:40 (GMT)
commit481909c66eea510ef8d990f95b0032f2c4963fc9 (patch)
tree54a18a3101532c359328a9075e7c1f09a20fc896 /tests/ioCmd.test
parent2ee83d5390eaafbdbf8d931394ce06e5024f961b (diff)
downloadtcl-481909c66eea510ef8d990f95b0032f2c4963fc9.zip
tcl-481909c66eea510ef8d990f95b0032f2c4963fc9.tar.gz
tcl-481909c66eea510ef8d990f95b0032f2c4963fc9.tar.bz2
* generic/tclIORChan.c (ReflectOutput): Allow zero return from
write when input was zero-length anyway. Otherwise keept it an error, and separate the message from 'written too much'. * tests/ioCmd.test (iocmd-24.6): Testcase updated for changed message.
Diffstat (limited to 'tests/ioCmd.test')
-rw-r--r--tests/ioCmd.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index 024e622..fcdc326 100644
--- a/tests/ioCmd.test
+++ b/tests/ioCmd.test
@@ -13,7 +13,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.36.2.1 2008/04/04 16:45:51 andreas_kupries Exp $
+# RCS: @(#) $Id: ioCmd.test,v 1.36.2.2 2008/04/04 17:19:43 andreas_kupries Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -1039,7 +1039,7 @@ test iocmd-24.6 {chan write, bad result, zero-length write} -match glob -body {
close $c
rename foo {}
set res
-} -result {{write rc* snarf} 1 {write wrote more than requested}}
+} -result {{write rc* snarf} 1 {write wrote nothing}}
test iocmd-24.7 {chan write, failed write, error return} -match glob -body {
set res {}
proc foo {args} {oninit; onfinal; track; return -code error BOOM!}