Unit Tests
- Set well-known umask for permissions test. When started with another umask value the permissions of the created directory would be different and the tests fail.
This commit is contained in:
committed by
Paul Beckingham
parent
2074a6e31b
commit
fa59d0d77d
1
AUTHORS
1
AUTHORS
@@ -90,6 +90,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
|
||||
Martin Natano
|
||||
kili
|
||||
jasper
|
||||
Rainer Müller
|
||||
|
||||
Thanks to the following, who submitted detailed bug reports and excellent
|
||||
suggestions:
|
||||
|
||||
@@ -130,6 +130,7 @@ int main (int argc, char** argv)
|
||||
t.notok (d9.up (), "parent / --> false");
|
||||
|
||||
// Test permissions.
|
||||
umask(0022);
|
||||
Directory d10 ("tmp/dir.perm");
|
||||
d10.create (0750);
|
||||
t.ok (d10.exists (), "Directory::create perm file exists");
|
||||
|
||||
Reference in New Issue
Block a user