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-helper.h | |
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-helper.h')
-rw-r--r-- | src/test/test-helper.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/test-helper.h b/src/test/test-helper.h index f75dd3374a..c0f6a91787 100644 --- a/src/test/test-helper.h +++ b/src/test/test-helper.h @@ -23,9 +23,21 @@ #include "sd-daemon.h" +#include "macro.h" + #define TEST_REQ_RUNNING_SYSTEMD(x) \ if (sd_booted() > 0) { \ x; \ } else { \ printf("systemd not booted skipping '%s'\n", #x); \ } + +#define MANAGER_SKIP_TEST(r) \ + IN_SET(r, \ + -EPERM, \ + -EACCES, \ + -EADDRINUSE, \ + -EHOSTDOWN, \ + -ENOENT, \ + -ENOMEDIUM /* cannot determine cgroup */ \ + ) |