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

View File

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