summaryrefslogtreecommitdiffstats
path: root/tests/chanio.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/chanio.test
parentdefc33228dae46280943ff6cc62d3a4a3284e056 (diff)
downloadtcl-c99f35416608c70d8e277b38405429a50b64bd84.zip
tcl-c99f35416608c70d8e277b38405429a50b64bd84.tar.gz
tcl-c99f35416608c70d8e277b38405429a50b64bd84.tar.bz2
two more 0o??? notations
Diffstat (limited to 'tests/chanio.test')
-rw-r--r--tests/chanio.test4
1 files changed, 2 insertions, 2 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 {