test-condition: make function return void

We don't look at the result anyway.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-09-14 09:29:57 +02:00
parent 317bb217d3
commit 8b81c382c3
+2 -4
View File
@@ -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) {