test-path: fix inverted return value (#7050)

It must be <0 to indicate failure.

Fixes #7050.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-10-17 17:49:48 +02:00 committed by GitHub
parent cfe134e312
commit be21bf856b

View file

@ -48,7 +48,7 @@ static int setup_test(Manager **m) {
r = enter_cgroup_subroot();
if (r == -ENOMEDIUM) {
log_notice_errno(r, "Skipping test: cgroupfs not available");
return EXIT_TEST_SKIP;
return -EXIT_TEST_SKIP;
}
r = manager_new(UNIT_FILE_USER, MANAGER_TEST_RUN_MINIMAL, &tmp);