diff options
Diffstat (limited to 'src/journal/test-journal-init.c')
-rw-r--r-- | src/journal/test-journal-init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/test-journal-init.c b/src/journal/test-journal-init.c index 860baca383..d10e61080d 100644 --- a/src/journal/test-journal-init.c +++ b/src/journal/test-journal-init.c @@ -2,6 +2,7 @@ #include "sd-journal.h" +#include "chattr-util.h" #include "log.h" #include "parse-util.h" #include "rm-rf.h" @@ -11,7 +12,7 @@ int main(int argc, char *argv[]) { sd_journal *j; int r, i, I = 100; - char t[] = "/tmp/journal-stream-XXXXXX"; + char t[] = "/var/tmp/journal-stream-XXXXXX"; test_setup_logging(LOG_DEBUG); @@ -24,6 +25,7 @@ int main(int argc, char *argv[]) { log_info("Running %d loops", I); assert_se(mkdtemp(t)); + (void) chattr_path(t, FS_NOCOW_FL, FS_NOCOW_FL, NULL); for (i = 0; i < I; i++) { r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY); |