From b3a7ba896851708cce0e5026a814007fbb11b4cd Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 7 Sep 2015 08:09:13 +0200 Subject: 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. --- src/test/test-cgroup-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/test-cgroup-util.c') 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; } -- cgit v1.2.3-54-g00ecf