Issue 73 in casacore: tests replying on permission bits exceptions fail if run by superuser

0 views
Skip to first unread message

casa...@googlecode.com

unread,
Oct 28, 2014, 9:19:59 PM10/28/14
to casacor...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Milestone-Release1.4

New issue 73 by hero...@gmail.com: tests replying on permission bits
exceptions fail if run by superuser
https://code.google.com/p/casacore/issues/detail?id=73

What steps will reproduce the problem?
1. build casacore as superuser (root)

What is the expected output?
successful tests

What do you see instead?
The following tests FAILED:
77 - tBucketFile (Failed)
79 - tByteIO (Failed)
95 - tDirectory (Failed)
98 - tFile (Failed)
107 - tRegularFile (Failed)
108 - tSymLink (Failed)


On *nix systems, the superuser can access anything regardless of the file
permission bits. The tests relying on "permission denied" exceptions
should be isolated and disabled when building on *nix. These mechanisms
are taken care of by the OS, casacore
does not need to confirm them again.

An example code snippet is from casa/OS/test/tSymlink.cc:

file.setPermissions (0444);
if (doExcp) {
try {
SymLink symLink1(Path("tSymLink_tmp/isDir/newB"));
}
catch (AipsError x) {
cout << x.getMesg () << endl; // cannot
create
}
try {
newLink2.create("a");
}
catch (AipsError x) {
cout << x.getMesg () << endl; // cannot
create
}
}


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

casa...@googlecode.com

unread,
Oct 29, 2014, 12:20:27 AM10/29/14
to casacor...@googlegroups.com

Comment #1 on issue 73 by hero...@gmail.com: tests replying on permission
bits exceptions fail if run by superuser
https://code.google.com/p/casacore/issues/detail?id=73

oh, typo in the title: replying -> relying
Reply all
Reply to author
Forward
0 new messages