diff options
author | andreas_kupries <akupries@shaw.ca> | 2008-04-09 19:52:50 (GMT) |
---|---|---|
committer | andreas_kupries <akupries@shaw.ca> | 2008-04-09 19:52:50 (GMT) |
commit | 7771a657c1cab8174616928296ec54f956aae809 (patch) | |
tree | a5888a54b5c334321bbc2bb89fc2aff79368766f | |
parent | 22bed54a233c2bf15f51fd149e2059b59205be71 (diff) | |
download | tcl-7771a657c1cab8174616928296ec54f956aae809.zip tcl-7771a657c1cab8174616928296ec54f956aae809.tar.gz tcl-7771a657c1cab8174616928296ec54f956aae809.tar.bz2 |
* tests/io.test (io-52.5): Removed '-size -1' from test, does not
seem to have any bearing, and was an illegal value. Test case is
not affected by the value of -size, test flag restoration and that
everything was properly copied.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/io.test | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2008-04-09 Andreas Kupries <andreask@activestate.com> + * tests/io.test (io-52.5): Removed '-size -1' from test, does not + seem to have any bearing, and was an illegal value. Test case is + not affected by the value of -size, test flag restoration and that + everything was properly copied. + * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Added checking of -size * tests/ioCmd.test (iocmd-15.{13,14}): value to reject negative values, and values overflowing 32-bit signed. [Bug 1557855]. Basic diff --git a/tests/io.test b/tests/io.test index f9289ca..c6ef73d 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.40.2.17 2008/04/08 23:37:36 andreas_kupries Exp $ +# RCS: @(#) $Id: io.test,v 1.40.2.18 2008/04/09 19:52:51 andreas_kupries Exp $ if {[catch {package require tcltest 2}]} { puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -6568,7 +6568,7 @@ test io-52.5 {TclCopyChannel} {fcopy} { set f2 [open $path(test1) w] fconfigure $f1 -translation lf -blocking 0 fconfigure $f2 -translation lf -blocking 0 - fcopy $f1 $f2 -size -1 + fcopy $f1 $f2 ;#-size -1 set result [list [fconfigure $f1 -blocking] [fconfigure $f2 -blocking]] close $f1 close $f2 |