chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: introduce the concept of AssertXYZ= similar to ConditionXYZ=, but fatal for...
[elogind.git]
/
src
/
journal
/
test-journal.c
diff --git
a/src/journal/test-journal.c
b/src/journal/test-journal.c
index 85b4cf71acf5915da2d8b22963faad4c9a0f7c21..74168b9b830e2e2dd84e4e347ebdb07439252590 100644
(file)
--- a/
src/journal/test-journal.c
+++ b/
src/journal/test-journal.c
@@
-22,7
+22,7
@@
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
-#include
<systemd/sd-journal.h>
+#include
"systemd/sd-journal.h"
#include "log.h"
#include "journal-file.h"
#include "log.h"
#include "journal-file.h"
@@
-126,7
+126,7
@@
static void test_non_empty(void) {
if (arg_keep)
log_info("Not removing %s", t);
else {
if (arg_keep)
log_info("Not removing %s", t);
else {
- journal_directory_vacuum(".", 3000000, 0, NULL);
+ journal_directory_vacuum(".", 3000000, 0, NULL
, true
);
assert_se(rm_rf_dangerous(t, false, true, false) >= 0);
}
assert_se(rm_rf_dangerous(t, false, true, false) >= 0);
}
@@
-165,7
+165,7
@@
static void test_empty(void) {
if (arg_keep)
log_info("Not removing %s", t);
else {
if (arg_keep)
log_info("Not removing %s", t);
else {
- journal_directory_vacuum(".", 3000000, 0, NULL);
+ journal_directory_vacuum(".", 3000000, 0, NULL
, true
);
assert_se(rm_rf_dangerous(t, false, true, false) >= 0);
}
assert_se(rm_rf_dangerous(t, false, true, false) >= 0);
}