[systemd-commits] src/test

Kay Sievers kay at kemper.freedesktop.org
Fri Nov 22 07:00:10 PST 2013


 src/test/test-sched-prio.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 254ed85a8c6ff182133a9843125e541929ba8197
Author: Kay Sievers <kay at vrfy.org>
Date:   Fri Nov 22 15:58:39 2013 +0100

    test: test-sched-prio - skip if XDG_RUNTIME_DIR is not set
    
    =================================
    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.
    =================================

diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c
index aee75e8..208fca8 100644
--- a/src/test/test-sched-prio.c
+++ b/src/test/test-sched-prio.c
@@ -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);



More information about the systemd-commits mailing list