]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/test/test-helper.h
tests: make is_run_on_travis_ci() static
[thirdparty/systemd.git] / src / test / test-helper.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright © 2013 Holger Hans Peter Freyther
6 ***/
7
8 #include "sd-daemon.h"
9
10 #define TEST_REQ_RUNNING_SYSTEMD(x) \
11 if (sd_booted() > 0) { \
12 x; \
13 } else { \
14 printf("systemd not booted skipping '%s'\n", #x); \
15 }
16
17 int enter_cgroup_subroot(void);