X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fjournal%2Ftest-journal-interleaving.c;h=8067cd38ee3bf22240b36c0cd5df0b9350ad5d0a;hb=455971c1493fc6dc3125d235cf4ea6102cac626d;hp=af0d43e39e77a9bfc4e2bbfd3869a6170cef267a;hpb=510b857f7d1e7e8d38912890536342dd5dd647dd;p=elogind.git diff --git a/src/journal/test-journal-interleaving.c b/src/journal/test-journal-interleaving.c index af0d43e39..8067cd38e 100644 --- a/src/journal/test-journal-interleaving.c +++ b/src/journal/test-journal-interleaving.c @@ -23,7 +23,7 @@ #include #include -#include +#include "systemd/sd-journal.h" #include "journal-file.h" #include "journal-internal.h" @@ -36,7 +36,7 @@ static bool arg_keep = false; -_noreturn_ static void log_assert_errno(const char *text, int eno, const char *file, int line, const char *func) { +noreturn static void log_assert_errno(const char *text, int eno, const char *file, int line, const char *func) { log_meta(LOG_CRIT, file, line, func, "'%s' failed at %s:%u (%s): %s.", text, file, line, func, strerror(eno)); @@ -189,7 +189,7 @@ static void test_skip(void (*setup)(void)) { if (arg_keep) log_info("Not removing %s", t); else { - journal_directory_vacuum(".", 3000000, 0, 0, NULL); + journal_directory_vacuum(".", 3000000, 0, NULL, true); assert_se(rm_rf_dangerous(t, false, true, false) >= 0); } @@ -274,7 +274,7 @@ static void test_sequence_numbers(void) { if (arg_keep) log_info("Not removing %s", t); else { - journal_directory_vacuum(".", 3000000, 0, 0, NULL); + journal_directory_vacuum(".", 3000000, 0, NULL, true); assert_se(rm_rf_dangerous(t, false, true, false) >= 0); }