Skip to content

Commit be21bf8

Browse files
authored
test-path: fix inverted return value (systemd#7050)
It must be <0 to indicate failure. Fixes systemd#7050.
1 parent cfe134e commit be21bf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/test-path.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int setup_test(Manager **m) {
4848
r = enter_cgroup_subroot();
4949
if (r == -ENOMEDIUM) {
5050
log_notice_errno(r, "Skipping test: cgroupfs not available");
51-
return EXIT_TEST_SKIP;
51+
return -EXIT_TEST_SKIP;
5252
}
5353

5454
r = manager_new(UNIT_FILE_USER, MANAGER_TEST_RUN_MINIMAL, &tmp);

0 commit comments

Comments
 (0)