summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
diff options
context:
space:
mode:
authornijtmans <nijtmans>2011-01-17 11:27:28 (GMT)
committernijtmans <nijtmans>2011-01-17 11:27:28 (GMT)
commit1dd5fbf51a42ff6449ede1d172e8f71952936965 (patch)
treec819a443954da3477561d7d07bc94d54a8dcf4e4 /tests/chanio.test
parentf1e18bf51337c961ce3f57362d0fc1a6584af378 (diff)
downloadtcl-1dd5fbf51a42ff6449ede1d172e8f71952936965.zip
tcl-1dd5fbf51a42ff6449ede1d172e8f71952936965.tar.gz
tcl-1dd5fbf51a42ff6449ede1d172e8f71952936965.tar.bz2
[Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.
Improved error-message regarding legacy form.
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index b1c4e8a..c191dfe 100644
--- a/tests/chanio.test
+++ b/tests/chanio.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: chanio.test,v 1.26 2010/11/24 11:56:57 dkf Exp $
+# RCS: @(#) $Id: chanio.test,v 1.27 2011/01/17 11:27:28 nijtmans Exp $
if {[catch {package require tcltest 2}]} {
chan puts stderr "Skipping tests in [info script]. tcltest 2 required."
@@ -3932,7 +3932,7 @@ test chan-io-32.3 {Tcl_Read, negative byte count} -setup {
chan read $f -1
} -returnCodes error -cleanup {
chan close $f
-} -result {bad argument "-1": should be "nonewline"}
+} -result {expected non-negative integer but got "-1"}
test chan-io-32.4 {Tcl_Read, positive byte count} -body {
set f [open $path(longfile) r]
string length [chan read $f 1024]