test-condition: make function return void
We don't look at the result anyway.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user