summaryrefslogtreecommitdiffstats
path: root/tests/ioCmd.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-04-21 16:26:36 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-04-21 16:26:36 (GMT)
commit7346f5c47fd9b46f12a26714b5dde16148a5b932 (patch)
tree43966b029920f95f258773685998205a58dff5ef /tests/ioCmd.test
parent1829cc0665068c6129b9bd0bfbc1f7a3b53c1ab0 (diff)
downloadtcl-7346f5c47fd9b46f12a26714b5dde16148a5b932.zip
tcl-7346f5c47fd9b46f12a26714b5dde16148a5b932.tar.gz
tcl-7346f5c47fd9b46f12a26714b5dde16148a5b932.tar.bz2
* generic/tclIOUtil.c: Removed all code delimited by
* generic/tclTest.c: USE_OBSOLETE_FS_HOOKS, completing * tests/ioCmd.test: the deprecation path for these * tests/ioUtil.test (removed): obsolete interfaces. (Code was active in Tcl 8.4, present but enabled only by customized compile switch in Tcl 8.5, and now completely gone for Tcl 8.6). Also removed all tests relevant only to the removed interfaces.
Diffstat (limited to 'tests/ioCmd.test')
-rw-r--r--tests/ioCmd.test23
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index c3bde34..5a0d1ba 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.40 2008/04/10 20:58:59 andreas_kupries Exp $
+# RCS: @(#) $Id: ioCmd.test,v 1.41 2008/04/21 16:26:39 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -526,6 +526,27 @@ test iocmd-13.10.2 {open for append, O_APPEND} -setup {
# Ensure that channels are gone, even if body failed to do so
foreach ch $chans {catch {close $ch}}
} -result {0 1 2 3 4 5 6 7 8 9}
+test ioCmd-13.11 {open ... a+ must not use O_APPEND: Bug 1773127} -setup {
+ set f [makeFile {} ioutil41.tmp]
+ set fid [open $f wb]
+ puts -nonewline $fid 123
+ close $fid
+} -body {
+ set fid [open $f ab+]
+ puts -nonewline $fid 456
+ seek $fid 2
+ set d [read $fid 2]
+ seek $fid 4
+ puts -nonewline $fid x
+ close $fid
+ set fid [open $f rb]
+ append d [read $fid]
+ close $fid
+ return $d
+} -cleanup {
+ removeFile $f
+} -result 341234x6
+
test iocmd-14.1 {file id parsing errors} {
list [catch {eof gorp} msg] $msg $::errorCode