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:
Rainer Müller 2013-10-07 23:50:56 +02:00 committed by Paul Beckingham
parent 2074a6e31b
commit fa59d0d77d
2 changed files with 2 additions and 0 deletions

View file

@ -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:

View file

@ -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");