chiark / gitweb /
test: test-sched-prio - skip if XDG_RUNTIME_DIR is not set
authorKay Sievers <kay@vrfy.org>
Fri, 22 Nov 2013 14:58:39 +0000 (15:58 +0100)
committerKay Sievers <kay@vrfy.org>
Fri, 22 Nov 2013 14:58:39 +0000 (15:58 +0100)
=================================
No control group support available, not creating root group.

Failed to determine XDG_RUNTIME_DIR

Assertion 'r >= 0' failed at src/test/test-sched-prio.c:42, function main(). Aborting.
=================================

src/test/test-sched-prio.c

index aee75e8..208fca8 100644 (file)
@@ -35,8 +35,8 @@ int main(int argc, char *argv[]) {
         /* prepare the test */
         assert_se(set_unit_path(TEST_DIR) >= 0);
         r = manager_new(SYSTEMD_USER, false, &m);
-        if (r == -EPERM || r == -EACCES || r == -EADDRINUSE) {
-                puts("manager_new: Permission denied. Skipping test.");
+        if (r == -EPERM || r == -EACCES || r == -EADDRINUSE || r == -EHOSTDOWN) {
+                printf("Skipping test: manager_new: %s", strerror(-r));
                 return EXIT_TEST_SKIP;
         }
         assert(r >= 0);