From: Martin Pitt Date: Mon, 7 Sep 2015 06:09:13 +0000 (+0200) Subject: tests: Skip test-cgroup-util test_mask_supported() when not running under systemd X-Git-Tag: v226~16^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1182%2Fhead;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/test/test-cgroup-util.c b/src/test/test-cgroup-util.c index ff7e45901ca..4ecf09a29e0 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; }