chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: Make testing work on systems without or old systemd
[elogind.git]
/
src
/
test
/
test-unit-name.c
diff --git
a/src/test/test-unit-name.c
b/src/test/test-unit-name.c
index 6776ef0857716b4e70418e9b8b0b9c9444913ec5..c17692b845e5af80f469954acaf0baaec39b4ed5 100644
(file)
--- a/
src/test/test-unit-name.c
+++ b/
src/test/test-unit-name.c
@@
-34,6
+34,7
@@
#include "specifier.h"
#include "util.h"
#include "macro.h"
#include "specifier.h"
#include "util.h"
#include "macro.h"
+#include "test-helper.h"
static void test_replacements(void) {
#define expect(pattern, repl, expected) \
static void test_replacements(void) {
#define expect(pattern, repl, expected) \
@@
-196,6
+197,8
@@
static int test_unit_printf(void) {
}
int main(int argc, char* argv[]) {
}
int main(int argc, char* argv[]) {
+ int rc = 0;
test_replacements();
test_replacements();
- return test_unit_printf();
+ TEST_REQ_RUNNING_SYSTEMD(rc = test_unit_printf());
+ return rc;
}
}