diff options
author | nijtmans <nijtmans> | 2011-01-17 12:34:43 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2011-01-17 12:34:43 (GMT) |
commit | 53304b60d8cff2733905cbf09d5138055d70c0e1 (patch) | |
tree | eb3bdd86b4865143cbbb942e9c4126b8dfb2ba89 /tests/chanio.test | |
parent | 456edd2a8d273743a853156509ee0dc71f9b1a2a (diff) | |
download | tcl-53304b60d8cff2733905cbf09d5138055d70c0e1.zip tcl-53304b60d8cff2733905cbf09d5138055d70c0e1.tar.gz tcl-53304b60d8cff2733905cbf09d5138055d70c0e1.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.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/chanio.test b/tests/chanio.test index ce87e94..bcd24fe 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.3.2.11 2008/06/20 19:23:26 dgp Exp $ +# RCS: @(#) $Id: chanio.test,v 1.3.2.12 2011/01/17 12:34:43 nijtmans Exp $ if {[catch {package require tcltest 2}]} { chan puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -3858,7 +3858,7 @@ test chan-io-32.3 {Tcl_Read, negative byte count} { set l [list [catch {chan read $f -1} msg] $msg] chan close $f set l -} {1 {bad argument "-1": should be "nonewline"}} +} {1 {expected non-negative integer but got "-1"}} test chan-io-32.4 {Tcl_Read, positive byte count} { set f [open $path(longfile) r] set x [chan read $f 1024] |