summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-20 06:15:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-04-20 06:15:55 (GMT)
commit3d3574a29acb65e49229c127cff1e875d7977c91 (patch)
tree5a7f5ba1d04a2a3b12b0d8dd0b9f2468cd7eafe0 /tests/io.test
parent3d42a8913e2e9598c4a6aeba195d14261826b7c7 (diff)
parentd48b6bfcd6c717eca2710e41f09129ab78b2a20f (diff)
downloadtcl-tip_312.zip
tcl-tip_312.tar.gz
tcl-tip_312.tar.bz2
merge trunktip_312
Diffstat (limited to 'tests/io.test')
-rw-r--r--tests/io.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/io.test b/tests/io.test
index 6e7420d..3fc370d 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -5652,8 +5652,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)&0o777]
-} [format %04o [expr {0o666 & ~ $umaskValue}]]
+ format "%#o" [expr $stats(mode)&0o777]
+} [format %#4o [expr {0o666 & ~ $umaskValue}]]
test io-40.4 {POSIX open access modes: CREAT} {
file delete $path(test3)
set f [open $path(test3) w]