summaryrefslogtreecommitdiffstats
path: root/tests/ioCmd.test
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2008-04-10 20:55:25 (GMT)
committerandreas_kupries <akupries@shaw.ca>2008-04-10 20:55:25 (GMT)
commitbc0c76f942f4b2bbeb5fc0ed30a832b6fa0ea93d (patch)
tree5759c7413cef93580234aa0308a0546156c5eb11 /tests/ioCmd.test
parentd3b620c65854c8ff37d4e90fa7c04c980a2af171 (diff)
downloadtcl-bc0c76f942f4b2bbeb5fc0ed30a832b6fa0ea93d.zip
tcl-bc0c76f942f4b2bbeb5fc0ed30a832b6fa0ea93d.tar.gz
tcl-bc0c76f942f4b2bbeb5fc0ed30a832b6fa0ea93d.tar.bz2
* generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negative
values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added * tests/chanio.test (chan-io-52.5{,a,b}): comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
Diffstat (limited to 'tests/ioCmd.test')
-rw-r--r--tests/ioCmd.test8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index 2906871..5c6a330 100644
--- a/tests/ioCmd.test
+++ b/tests/ioCmd.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: ioCmd.test,v 1.36.2.3 2008/04/09 18:36:18 andreas_kupries Exp $
+# RCS: @(#) $Id: ioCmd.test,v 1.36.2.4 2008/04/10 20:55:27 andreas_kupries Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -606,12 +606,6 @@ test iocmd-15.11 {Tcl_FcopyObjCmd} {fcopy} {
test iocmd-15.12 {Tcl_FcopyObjCmd} {fcopy} {
list [catch {fcopy $rfile $wfile -command bar -size foo} msg] $msg
} {1 {expected integer but got "foo"}}
-test iocmd-15.13 {Tcl_FcopyObjCmd} {fcopy} {
- list [catch {fcopy $rfile $wfile -command bar -size 3221176172} msg] $msg
-} {1 {integer value to large to represent as 32bit signed value}}
-test iocmd-15.14 {Tcl_FcopyObjCmd} {fcopy} {
- list [catch {fcopy $rfile $wfile -command bar -size -2} msg] $msg
-} {1 {negative size forbidden}}
close $rfile
close $wfile