diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-04-04 10:04:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-04-04 12:18:13 +0200 |
commit | 949082ac214409365c01781fbf18ba08593918ff (patch) | |
tree | 14dbae36cfd7ce8c7f281496aab0bad97bbf9d68 /src/journal/test-journal-flush.c | |
parent | ask-passwd: slightly optimize handling arguments (diff) | |
download | systemd-949082ac214409365c01781fbf18ba08593918ff.tar.xz systemd-949082ac214409365c01781fbf18ba08593918ff.zip |
test-journal: move tests to /var/tmp/ and set FS_NOCOW_FLv242-rc3
The journal files might not be tiny hence let's write them to /var/tmp/
instead of /tmp. Also, let's turn on NOCOW on the files, as these tests
might apparently be slow on btrfs.
Fixes: #12210
Diffstat (limited to 'src/journal/test-journal-flush.c')
-rw-r--r-- | src/journal/test-journal-flush.c | 3 |
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); |