diff options
Diffstat (limited to 'tests/chan.test')
-rw-r--r-- | tests/chan.test | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/chan.test b/tests/chan.test index cf83820..dd2fea6 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.3 2005/06/07 20:52:25 dkf Exp $ +# RCS: @(#) $Id: chan.test,v 1.4 2005/06/07 21:31:53 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -76,11 +76,12 @@ test chan-14.1 {chan command: tell subcommand} -body { test chan-15.1 {chan command: truncate subcommand} -body { chan truncate foo bar foo bar } -returnCodes error -result "wrong \# args: should be \"chan truncate channelId ?length?\"" -test chan-15.2 {chan command: truncate subcommand} -constraints unix -setup { +test chan-15.2 {chan command: truncate subcommand} -setup { set file [makeFile {} testTruncate] set f [open $file w+] -} -body { fconfigure $f -translation binary +} -body { + seek $f 0 puts -nonewline $f 12345 seek $f 0 chan truncate $f 2 |