From 49e5de64e22ea4794092b91393545ab08e658e0a Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 26 Mar 2013 21:07:46 -0400 Subject: tests: skip bus test if bus cannot be opened To make the result more visible, special return value is used to tell automake that the test was skipped. While at it, use the same return value in other skipped tests. --- src/test/test-sched-prio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/test-sched-prio.c') diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c index c57f6a3671..ba0aacf79d 100644 --- a/src/test/test-sched-prio.c +++ b/src/test/test-sched-prio.c @@ -22,7 +22,7 @@ #include #include "manager.h" - +#include "macro.h" int main(int argc, char *argv[]) { Manager *m; @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { r = manager_new(SYSTEMD_USER, &m); if (r == -EPERM) { puts("manager_new: Permission denied. Skipping test."); - return EXIT_SUCCESS; + return EXIT_TEST_SKIP; } assert(r >= 0); assert_se(manager_startup(m, serial, fdset) >= 0); -- cgit v1.2.3-54-g00ecf