summaryrefslogtreecommitdiff
path: root/src/test/test-cgroup-util.c
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2015-09-07 08:09:13 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2015-09-07 08:09:13 +0200
commitb3a7ba896851708cce0e5026a814007fbb11b4cd (patch)
tree390b6f3a20cbb759a1168a1831204240336b398b /src/test/test-cgroup-util.c
parent9ec0fc9a3959b6d82fd2d4c4ef515e7953aaae6b (diff)
tests: Skip test-cgroup-util test_mask_supported() when not running under systemd
Commit 5f4c5fef6 introduced this new test case, but this does not work in build chroots where cgroupfs is not mounted. So skip the test if systemd is not running.
Diffstat (limited to 'src/test/test-cgroup-util.c')
-rw-r--r--src/test/test-cgroup-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c
index ff7e45901c..4ecf09a29e 100644
--- a/src/test/test-cgroup-util.c
+++ b/src/test/test-cgroup-util.c
@@ -320,7 +320,7 @@ int main(void) {
test_controller_is_valid();
test_slice_to_path();
test_shift_path();
- test_mask_supported();
+ TEST_REQ_RUNNING_SYSTEMD(test_mask_supported());
return 0;
}