]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
143bfdaf HHPF |
2 | #pragma once |
3 | ||
4 | /*** | |
96b2fb93 | 5 | Copyright © 2013 Holger Hans Peter Freyther |
143bfdaf HHPF |
6 | ***/ |
7 | ||
8 | #include "sd-daemon.h" | |
9 | ||
8b3aa503 ZJS |
10 | #include "macro.h" |
11 | ||
143bfdaf | 12 | #define TEST_REQ_RUNNING_SYSTEMD(x) \ |
90e633a7 JSJ |
13 | if (sd_booted() > 0) { \ |
14 | x; \ | |
143bfdaf HHPF |
15 | } else { \ |
16 | printf("systemd not booted skipping '%s'\n", #x); \ | |
17 | } | |
8b3aa503 ZJS |
18 | |
19 | #define MANAGER_SKIP_TEST(r) \ | |
20 | IN_SET(r, \ | |
21 | -EPERM, \ | |
22 | -EACCES, \ | |
23 | -EADDRINUSE, \ | |
24 | -EHOSTDOWN, \ | |
25 | -ENOENT, \ | |
26 | -ENOMEDIUM /* cannot determine cgroup */ \ | |
27 | ) | |
8c759b33 | 28 | |
651d47d1 | 29 | int enter_cgroup_subroot(void); |
f5f9a580 EV |
30 | |
31 | bool is_run_on_travis_ci(void); |