diff options
author | nijtmans <nijtmans> | 2011-01-17 11:27:28 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2011-01-17 11:27:28 (GMT) |
commit | 1dd5fbf51a42ff6449ede1d172e8f71952936965 (patch) | |
tree | c819a443954da3477561d7d07bc94d54a8dcf4e4 /tests/io.test | |
parent | f1e18bf51337c961ce3f57362d0fc1a6584af378 (diff) | |
download | tcl-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/io.test')
-rw-r--r-- | tests/io.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/io.test b/tests/io.test index e2d0c13..8a30260 100644 --- a/tests/io.test +++ b/tests/io.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: io.test,v 1.97 2010/12/10 17:00:12 ferrieux Exp $ +# RCS: @(#) $Id: io.test,v 1.98 2011/01/17 11:27:28 nijtmans Exp $ if {[catch {package require tcltest 2}]} { puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -3858,7 +3858,7 @@ test io-32.3 {Tcl_Read, negative byte count} { set l [list [catch {read $f -1} msg] $msg] close $f set l -} {1 {bad argument "-1": should be "nonewline"}} +} {1 {expected non-negative integer but got "-1"}} test io-32.4 {Tcl_Read, positive byte count} { set f [open $path(longfile) r] set x [read $f 1024] |