summaryrefslogtreecommitdiffstats
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
parentdefc33228dae46280943ff6cc62d3a4a3284e056 (diff)
downloadtcl-c99f35416608c70d8e277b38405429a50b64bd84.zip
tcl-c99f35416608c70d8e277b38405429a50b64bd84.tar.gz
tcl-c99f35416608c70d8e277b38405429a50b64bd84.tar.bz2
two more 0o??? notations
-rw-r--r--tests/chanio.test4
-rw-r--r--tests/io.test4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/chanio.test b/tests/chanio.test
index ffb4e91..5586015 100644
--- a/tests/chanio.test
+++ b/tests/chanio.test
@@ -5350,8 +5350,8 @@ test chan-io-40.3 {POSIX open access modes: CREAT} -setup {
# This test only works if your umask is 2, like ouster's.
chan close [open $path(test3) {WRONLY CREAT}]
file stat $path(test3) stats
- format "%#o" [expr {$stats(mode) & 0o777}]
-} -result [format %#4o [expr {0o666 & ~ $umaskValue}]]
+ format "0o%03o" [expr {$stats(mode) & 0o777}]
+} -result [format 0o%03o [expr {0o666 & ~ $umaskValue}]]
test chan-io-40.4 {POSIX open access modes: CREAT} -setup {
file delete $path(test3)
} -body {
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]