diff options
author | dgp <dgp@users.sourceforge.net> | 2013-03-18 18:00:12 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-03-18 18:00:12 (GMT) |
commit | 319d55d1fb626ba5c3fd469ec4fc8e57a3103f78 (patch) | |
tree | 0a6a6f86127c87fe32cae2e95eb2016ab447ef1f /tests/unixFCmd.test | |
parent | 45f8750b6cdcdf2f420648ff8e04a1fcb12f19d5 (diff) | |
parent | a3cbfed957b0bb6f27adce4672cd01809ee22dbe (diff) | |
download | tcl-319d55d1fb626ba5c3fd469ec4fc8e57a3103f78.zip tcl-319d55d1fb626ba5c3fd469ec4fc8e57a3103f78.tar.gz tcl-319d55d1fb626ba5c3fd469ec4fc8e57a3103f78.tar.bz2 |
Test independence in unixFCmd.test
Diffstat (limited to 'tests/unixFCmd.test')
-rw-r--r-- | tests/unixFCmd.test | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/unixFCmd.test b/tests/unixFCmd.test index 2453e01..e4613ed 100644 --- a/tests/unixFCmd.test +++ b/tests/unixFCmd.test @@ -365,20 +365,21 @@ test unixFCmd-17.4 {SetPermissionsAttribute} -setup { close [open foo.test w] set ::i 4 -proc permcheck {testnum permstr expected} { +proc permcheck {testnum permList expected} { test $testnum {SetPermissionsAttribute} {unix notRoot} { + set result {} + foreach permstr $permList { file attributes foo.test -permissions $permstr - file attributes foo.test -permissions + lappend result [file attributes foo.test -permissions] + } + set result } $expected } permcheck unixFCmd-17.5 rwxrwxrwx 00777 permcheck unixFCmd-17.6 r--r---w- 00442 -permcheck unixFCmd-17.7 0 00000 -permcheck unixFCmd-17.8 u+rwx,g+r 00740 -permcheck unixFCmd-17.9 u-w 00540 -permcheck unixFCmd-17.10 o+rwx 00547 +permcheck unixFCmd-17.7 {0 u+rwx,g+r u-w o+rwx} {00000 00740 00540 00547} permcheck unixFCmd-17.11 --x--x--x 00111 -permcheck unixFCmd-17.12 a+rwx 00777 +permcheck unixFCmd-17.12 {0 a+rwx} {00000 00777} file delete -force -- foo.test test unixFCmd-18.1 {Unix pwd} -constraints {unix notRoot nonPortable} -setup { |