diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2015-09-07 08:09:13 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2015-09-07 08:09:13 +0200 |
commit | b3a7ba896851708cce0e5026a814007fbb11b4cd (patch) | |
tree | 390b6f3a20cbb759a1168a1831204240336b398b | |
parent | 9ec0fc9a3959b6d82fd2d4c4ef515e7953aaae6b (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.
-rw-r--r-- | src/test/test-cgroup-util.c | 2 |
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; } |