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
|
Martin Natano
|
||||||
kili
|
kili
|
||||||
jasper
|
jasper
|
||||||
|
Rainer Müller
|
||||||
|
|
||||||
Thanks to the following, who submitted detailed bug reports and excellent
|
Thanks to the following, who submitted detailed bug reports and excellent
|
||||||
suggestions:
|
suggestions:
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ int main (int argc, char** argv)
|
|||||||
t.notok (d9.up (), "parent / --> false");
|
t.notok (d9.up (), "parent / --> false");
|
||||||
|
|
||||||
// Test permissions.
|
// Test permissions.
|
||||||
|
umask(0022);
|
||||||
Directory d10 ("tmp/dir.perm");
|
Directory d10 ("tmp/dir.perm");
|
||||||
d10.create (0750);
|
d10.create (0750);
|
||||||
t.ok (d10.exists (), "Directory::create perm file exists");
|
t.ok (d10.exists (), "Directory::create perm file exists");
|
||||||
|
|||||||
Reference in New Issue
Block a user