]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: Skip test-cgroup-util test_mask_supported() when not running under systemd 1182/head
authorMartin Pitt <martin.pitt@ubuntu.com>
Mon, 7 Sep 2015 06:09:13 +0000 (08:09 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 7 Sep 2015 06:09:13 +0000 (08:09 +0200)
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

index ff7e45901ca1b1302eb6a520a5ee0f6a47250b44..4ecf09a29e0df0712da8f438001dbcae1c68b3aa 100644 (file)
@@ -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;
 }