From: Zbigniew Jędrzejewski-Szmek Date: Tue, 17 Oct 2017 15:49:48 +0000 (+0200) Subject: test-path: fix inverted return value (#7050) X-Git-Tag: v236~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be21bf856b77629c7f49ca65b3e62f650097048a;p=thirdparty%2Fsystemd.git test-path: fix inverted return value (#7050) It must be <0 to indicate failure. Fixes #7050. --- diff --git a/src/test/test-path.c b/src/test/test-path.c index 9de3dd66743..051dfc4868a 100644 --- a/src/test/test-path.c +++ b/src/test/test-path.c @@ -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);