diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-09-13 13:35:03 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-09-14 09:29:57 +0200 |
commit | 8b81c382c390d69e48d653c357b4d820bfc149a6 (patch) | |
tree | e3f6014013848ffe6851a911bc65f0aea21e05f0 | |
parent | tests: add helper to unify skipping a test and exiting (diff) | |
download | systemd-8b81c382c390d69e48d653c357b4d820bfc149a6.tar.xz systemd-8b81c382c390d69e48d653c357b4d820bfc149a6.zip |
test-condition: make function return void
We don't look at the result anyway.
-rw-r--r-- | src/test/test-condition.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/test-condition.c b/src/test/test-condition.c index 7ce6ee80ea..678fc426fe 100644 --- a/src/test/test-condition.c +++ b/src/test/test-condition.c @@ -113,7 +113,7 @@ static void test_condition_test_path(void) { condition_free(condition); } -static int test_condition_test_control_group_controller(void) { +static void test_condition_test_control_group_controller(void) { Condition *condition; CGroupMask system_mask; CGroupController controller; @@ -123,7 +123,7 @@ static int test_condition_test_control_group_controller(void) { r = cg_unified_flush(); if (r < 0) { log_notice_errno(r, "Skipping ConditionControlGroupController tests: %m"); - return EXIT_TEST_SKIP; + return; } /* Invalid controllers are ignored */ @@ -180,8 +180,6 @@ static int test_condition_test_control_group_controller(void) { assert_se(condition); assert_se(!condition_test(condition)); condition_free(condition); - - return EXIT_SUCCESS; } static void test_condition_test_ac_power(void) { |