diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-04-14 09:06:34 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-04-14 09:06:34 (GMT) |
commit | 1bfdefdad35caeaff3dcdfea5f35c70373332bb0 (patch) | |
tree | 5b67cfd7f26b58d25a5e3c6134d29162cc4ccc54 /tests/chanio.test | |
parent | 376e19aa5f5a32fa46e67e6c9f7d73b47f729426 (diff) | |
parent | 73eb386816168576a6c42eea64be0b214e6d7d6c (diff) | |
download | tcl-1bfdefdad35caeaff3dcdfea5f35c70373332bb0.zip tcl-1bfdefdad35caeaff3dcdfea5f35c70373332bb0.tar.gz tcl-1bfdefdad35caeaff3dcdfea5f35c70373332bb0.tar.bz2 |
merge core-8-6-branch
Diffstat (limited to 'tests/chanio.test')
-rw-r--r-- | tests/chanio.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/chanio.test b/tests/chanio.test index 8e27af9..2d900d0 100644 --- a/tests/chanio.test +++ b/tests/chanio.test @@ -5338,22 +5338,22 @@ test chan-io-40.2 {POSIX open access modes: CREAT} -setup { } -constraints {unix} -body { set f [open $path(test3) {WRONLY CREAT} 0600] file stat $path(test3) stats - set x [format "0%o" [expr $stats(mode)&0o777]] + set x [format "%#o" [expr $stats(mode)&0o777]] chan puts $f "line 1" chan close $f set f [open $path(test3) r] lappend x [chan gets $f] } -cleanup { chan close $f -} -result {0600 {line 1}} +} -result {0o600 {line 1}} test chan-io-40.3 {POSIX open access modes: CREAT} -setup { file delete $path(test3) } -constraints {unix umask} -body { # 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 "0%o" [expr $stats(mode)&0o777] -} -result [format %04o [expr {0o666 & ~ $umaskValue}]] + format "%#o" [expr $stats(mode)&0o777] +} -result [format %#5o [expr {0o666 & ~ $umaskValue}]] test chan-io-40.4 {POSIX open access modes: CREAT} -setup { file delete $path(test3) } -body { |