summaryrefslogtreecommitdiffstats
path: root/tests/io.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-03 13:57:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-03 13:57:56 (GMT)
commitc99f35416608c70d8e277b38405429a50b64bd84 (patch)
treec92288b4086d8399b4dd1a8050fc2747933dfda8 /tests/io.test
parentdefc33228dae46280943ff6cc62d3a4a3284e056 (diff)
downloadtcl-c99f35416608c70d8e277b38405429a50b64bd84.zip
tcl-c99f35416608c70d8e277b38405429a50b64bd84.tar.gz
tcl-c99f35416608c70d8e277b38405429a50b64bd84.tar.bz2
two more 0o??? notations
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 e45b5ef..71f6e50 100644
--- a/tests/io.test
+++ b/tests/io.test
@@ -5655,8 +5655,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 "%#o" [expr $stats(mode)&0o777]
-} [format %#4o [expr {0o666 & ~ $umaskValue}]]
+ format "0o%03o" [expr $stats(mode)&0o777]
+} [format "0o%03o" [expr {0o666 & ~ $umaskValue}]]
test io-40.4 {POSIX open access modes: CREAT} {
file delete $path(test3)
set f [open $path(test3) w]