|
2014-10-22
| ||
| 15:22 | • Ticket [17a26ddf66] fCmd-27.5 and 27.6 fail because permission to set attribute ... artifact: 163390ebf7 user: pooryorick | |
| 15:18 | • New ticket [17a26ddf66]. artifact: f26a5773d6 user: pooryorick | |
fCmd-27.5 and 27.6 fail because permission to set attribute is denied
Open17a26ddf6600651cc7e2930fbe5a96c13fdbd8f2Created 12 years agoUpdated 12 years ago
Descriptionplain2014-10-22 15:18:17
==== fCmd-27.5 TclFileAttrsCmd - setting one option FAILED
==== Contents of test case:
createfile foo.tmp
set attrs [file attributes foo.tmp]
file attributes foo.tmp {*}[lrange $attrs 0 1]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: could not set group for file "foo.tmp": not owner
while executing
"file attributes foo.tmp {*}[lrange $attrs 0 1]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EPERM {not owner}
==== fCmd-27.5 FAILED
==== fCmd-27.6 TclFileAttrsCmd - setting more than one option FAILED
==== Contents of test case:
createfile foo.tmp
set attrs [file attributes foo.tmp]
file attributes foo.tmp {*}[lrange $attrs 0 3]
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: could not set group for file "foo.tmp": not owner
while executing
"file attributes foo.tmp {*}[lrange $attrs 0 3]"
("uplevel" body line 4)
invoked from within
"uplevel 1 $script"
---- errorCode: POSIX EPERM {not owner}
==== fCmd-27.6 FAILED
pooryorick (claiming to be changing group to the current group owner not allowed)plain2014-10-22 15:22:53
These errors occurred because the Tcl build directory inherited group ownership from a parent directory, and the group owner is not a group the user has access to. The tests choose the first attribute in the attribute list, which happens to be "-group". The failure could be resolved by selecting a less controversial attribute to operate on for the purpose of the tests.
Log in (anonymous is fine) to add a comment.