From c99f35416608c70d8e277b38405429a50b64bd84 Mon Sep 17 00:00:00 2001
From: "jan.nijtmans" <nijtmans@users.sourceforge.net>
Date: Thu, 3 Dec 2020 13:57:56 +0000
Subject: two more 0o??? notations

---
 tests/chanio.test | 4 ++--
 tests/io.test     | 4 ++--
 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]
-- 
cgit v0.12