From fa59d0d77dd6052a2903f9bab0c159e6852694a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rainer=20M=C3=BCller?= Date: Mon, 7 Oct 2013 23:50:56 +0200 Subject: [PATCH] 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. --- AUTHORS | 1 + test/directory.t.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS b/AUTHORS index 3e4dae85a..cf65848be 100644 --- a/AUTHORS +++ b/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: diff --git a/test/directory.t.cpp b/test/directory.t.cpp index 5afe0eb2c..7ca8787df 100644 --- a/test/directory.t.cpp +++ b/test/directory.t.cpp @@ -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");