summaryrefslogtreecommitdiffstats
path: root/src/journal/test-journal-flush.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/test-journal-flush.c')
-rw-r--r--src/journal/test-journal-flush.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/journal/test-journal-flush.c b/src/journal/test-journal-flush.c
index 566674d6b0..de9d23a003 100644
--- a/src/journal/test-journal-flush.c
+++ b/src/journal/test-journal-flush.c
@@ -6,6 +6,7 @@
#include "sd-journal.h"
#include "alloc-util.h"
+#include "chattr-util.h"
#include "journal-file.h"
#include "journal-internal.h"
#include "macro.h"
@@ -20,6 +21,8 @@ int main(int argc, char *argv[]) {
int r;
assert_se(mkdtemp(dn));
+ (void) chattr_path(dn, FS_NOCOW_FL, FS_NOCOW_FL, NULL);
+
fn = strappend(dn, "/test.journal");
r = journal_file_open(-1, fn, O_CREAT|O_RDWR, 0644, false, 0, false, NULL, NULL, NULL, NULL, &new_journal);