diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-06-07 21:31:46 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-06-07 21:31:46 (GMT) |
commit | c2e9dac276543c87f90a314405d70427e7a9e642 (patch) | |
tree | 49b6f683f3b6054e5c1f32bcbe074c6e932c808f /tests/chan.test | |
parent | 2fcbb37a1b10ceee78d909cf4dc036e54651d058 (diff) | |
download | tcl-c2e9dac276543c87f90a314405d70427e7a9e642.zip tcl-c2e9dac276543c87f90a314405d70427e7a9e642.tar.gz tcl-c2e9dac276543c87f90a314405d70427e7a9e642.tar.bz2 |
Added (untested!) implementation of truncation for Windows
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 |