chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
architecture: add string table entries for mips-le archs which were missing
[elogind.git]
/
src
/
journal
/
test-journal-verify.c
diff --git
a/src/journal/test-journal-verify.c
b/src/journal/test-journal-verify.c
index 6b7414a4b1bff8ba0a10e6f580492a1010a694bb..3b181c679493daf62c061afd6bc09fde0e1dc0e0 100644
(file)
--- a/
src/journal/test-journal-verify.c
+++ b/
src/journal/test-journal-verify.c
@@
-48,7
+48,7
@@
static void bit_toggle(const char *fn, uint64_t p) {
r = pwrite(fd, &b, 1, p/8);
assert(r == 1);
r = pwrite(fd, &b, 1, p/8);
assert(r == 1);
-
close_nointr_nofail
(fd);
+
safe_close
(fd);
}
static int raw_verify(const char *fn, const char *verification_key) {
}
static int raw_verify(const char *fn, const char *verification_key) {
@@
-77,6
+77,10
@@
int main(int argc, char *argv[]) {
struct stat st;
uint64_t p;
struct stat st;
uint64_t p;
+ /* journal_file_open requires a valid machine id */
+ if (access("/etc/machine-id", F_OK) != 0)
+ return EXIT_TEST_SKIP;
+
log_set_max_level(LOG_DEBUG);
assert_se(mkdtemp(t));
log_set_max_level(LOG_DEBUG);
assert_se(mkdtemp(t));