diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-12-02 20:15:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-12-02 20:15:34 +0100 |
commit | 1eb30a4c5c14a3aa11eeb8bbee6e0fcef7eaee29 (patch) | |
tree | 9b4160bfbeabd669a7eef32b8e4cf45d79fe2b2f /src/test/test-path.c | |
parent | 375f1b0491568fc4e31fee95364d7c855371167e (diff) | |
parent | b3aa622929f81b44974d182636b1fde8b2a506e5 (diff) |
Merge pull request #2084 from keszybz/ppc64-fixes-2
Test fixes to run in ppc64 mock
Diffstat (limited to 'src/test/test-path.c')
-rw-r--r-- | src/test/test-path.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/test-path.c b/src/test/test-path.c index 8302bdd283..7a3b145414 100644 --- a/src/test/test-path.c +++ b/src/test/test-path.c @@ -29,6 +29,7 @@ #include "rm-rf.h" #include "string-util.h" #include "strv.h" +#include "test-helper.h" #include "unit.h" #include "util.h" @@ -44,8 +45,8 @@ static int setup_test(Manager **m) { assert_se(m); r = manager_new(MANAGER_USER, true, &tmp); - 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); |