mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
2074a6e31b
commit
fa59d0d77d
2 changed files with 2 additions and 0 deletions
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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue