summaryrefslogtreecommitdiff
path: root/src/test/test-engine.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-02 20:15:34 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-02 20:15:34 +0100
commit1eb30a4c5c14a3aa11eeb8bbee6e0fcef7eaee29 (patch)
tree9b4160bfbeabd669a7eef32b8e4cf45d79fe2b2f /src/test/test-engine.c
parent375f1b0491568fc4e31fee95364d7c855371167e (diff)
parentb3aa622929f81b44974d182636b1fde8b2a506e5 (diff)
Merge pull request #2084 from keszybz/ppc64-fixes-2
Test fixes to run in ppc64 mock
Diffstat (limited to 'src/test/test-engine.c')
-rw-r--r--src/test/test-engine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-engine.c b/src/test/test-engine.c
index c98d01168c..e23eec7370 100644
--- a/src/test/test-engine.c
+++ b/src/test/test-engine.c
@@ -25,6 +25,7 @@
#include "bus-util.h"
#include "manager.h"
+#include "test-helper.h"
int main(int argc, char *argv[]) {
_cleanup_(sd_bus_error_free) sd_bus_error err = SD_BUS_ERROR_NULL;
@@ -38,8 +39,8 @@ int main(int argc, char *argv[]) {
/* prepare the test */
assert_se(set_unit_path(TEST_DIR) >= 0);
r = manager_new(MANAGER_USER, true, &m);
- if (IN_SET(r, -EPERM, -EACCES, -EADDRINUSE, -EHOSTDOWN, -ENOENT, -ENOEXEC)) {
- printf("Skipping test: manager_new: %s", strerror(-r));
+ if (MANAGER_SKIP_TEST(r)) {
+ printf("Skipping test: manager_new: %s\n", strerror(-r));
return EXIT_TEST_SKIP;
}
assert_se(r >= 0);