diff options
author | dgp <dgp@users.sourceforge.net> | 2007-10-16 03:50:30 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-10-16 03:50:30 (GMT) |
commit | 469bf66686a3b807980f329a316d7494e80ef1b9 (patch) | |
tree | 0e7f1172118865035b0a062f8b80afa363cbda75 /tests/io.test | |
parent | d3f32c25f4f4e52eff048406ab16786b1de14677 (diff) | |
download | tcl-469bf66686a3b807980f329a316d7494e80ef1b9.zip tcl-469bf66686a3b807980f329a316d7494e80ef1b9.tar.gz tcl-469bf66686a3b807980f329a316d7494e80ef1b9.tar.bz2 |
merge updates from HEAD
Diffstat (limited to 'tests/io.test')
-rw-r--r-- | tests/io.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/io.test b/tests/io.test index f74b078..58f160b 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.76 2007/05/04 14:59:06 kennykb Exp $ +# RCS: @(#) $Id: io.test,v 1.76.2.1 2007/10/16 03:50:33 dgp Exp $ if {[catch {package require tcltest 2}]} { puts stderr "Skipping tests in [info script]. tcltest 2 required." @@ -48,7 +48,7 @@ testConstraint largefileSupport 0 # some tests can only be run is umask is 2 # if "umask" cannot be run, the tests will be skipped. set umaskValue 0 -testConstraint umask [expr {![catch {set umaskValue [exec /bin/sh -c umask]}]}] +testConstraint umask [expr {![catch {set umaskValue [scan [exec /bin/sh -c umask] %o]}]}] testConstraint makeFileInHome [expr {![file exists ~/_test_] && [file writable ~]}] @@ -5209,7 +5209,7 @@ test io-40.2 {POSIX open access modes: CREAT} {unix} { file delete $path(test3) set f [open $path(test3) {WRONLY CREAT} 0600] file stat $path(test3) stats - set x [format "0%o" [expr $stats(mode)&0777]] + set x [format "0%o" [expr $stats(mode)&0o777]] puts $f "line 1" close $f set f [open $path(test3) r] @@ -5223,8 +5223,8 @@ test io-40.3 {POSIX open access modes: CREAT} {unix umask} { set f [open $path(test3) {WRONLY CREAT}] close $f file stat $path(test3) stats - format "0%o" [expr $stats(mode)&0777] -} [format %04o [expr {0666 & ~ $umaskValue}]] + format "0%o" [expr $stats(mode)&0o777] +} [format %04o [expr {0o666 & ~ $umaskValue}]] test io-40.4 {POSIX open access modes: CREAT} { file delete $path(test3) set f [open $path(test3) w] |