summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-11 22:54:56 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-11 22:54:56 +0100
commitee735086f8670be1591fa9593e80dd60163a7a2f (patch)
tree4e91aabe48b07e37cd3712a5025ad66dfbc390fa /src/test
parentc89f52ac6938374972253d8752ed65f3af0b3ef4 (diff)
util-lib: use MODE_INVALID as invalid value for mode_t everywhere
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-conf-files.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test-conf-files.c b/src/test/test-conf-files.c
index a69698d4ea..86ac513d4f 100644
--- a/src/test/test-conf-files.c
+++ b/src/test/test-conf-files.c
@@ -26,6 +26,7 @@
#include "conf-files.h"
#include "fs-util.h"
#include "macro.h"
+#include "parse-util.h"
#include "rm-rf.h"
#include "string-util.h"
#include "strv.h"
@@ -40,7 +41,7 @@ static void setup_test_dir(char *tmp_dir, const char *files, ...) {
va_start(ap, files);
while (files != NULL) {
_cleanup_free_ char *path = strappend(tmp_dir, files);
- assert_se(touch_file(path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, 0) == 0);
+ assert_se(touch_file(path, true, USEC_INFINITY, UID_INVALID, GID_INVALID, MODE_INVALID) == 0);
files = va_arg(ap, const char *);
}
va_end(ap);