]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-sched-prio.c
tests: add helper to unify skipping a test and exiting
[thirdparty/systemd.git] / src / test / test-sched-prio.c
index 60012e47d28818e38d3689891a09b4016c14b5b3..c5943363259286b858b29bc5ac4b4c25d9fe7df7 100644 (file)
@@ -20,10 +20,8 @@ int main(int argc, char *argv[]) {
         int r;
 
         r = enter_cgroup_subroot();
-        if (r == -ENOMEDIUM) {
-                log_notice_errno(r, "Skipping test: cgroupfs not available");
-                return EXIT_TEST_SKIP;
-        }
+        if (r == -ENOMEDIUM)
+                return log_tests_skipped("cgroupfs not available");
 
         /* prepare the test */
         assert_se(set_unit_path(get_testdata_dir()) >= 0);