diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-19 21:01:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-20 19:37:02 +0100 |
commit | a454d241ef8b08e0984c6efbbd6187d70e32145b (patch) | |
tree | 190f029d8033649e98c9189e18710112a25076b0 /src/test/test-unit-name.c | |
parent | 911121a7c837040454c5d0422e2a225a8d799eef (diff) |
test: exit early if we would conflict with running user systemd
Diffstat (limited to 'src/test/test-unit-name.c')
-rw-r--r-- | src/test/test-unit-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-unit-name.c b/src/test/test-unit-name.c index 67ccdd4228..bde643ad56 100644 --- a/src/test/test-unit-name.c +++ b/src/test/test-unit-name.c @@ -125,7 +125,7 @@ static int test_unit_printf(void) { assert_se(asprintf(&root_uid, "%d", (int) root->pw_uid) > 0); r = manager_new(SYSTEMD_USER, false, &m); - if (r == -EPERM || r == -EACCES) { + if (r == -EPERM || r == -EACCES || r == -EADDRINUSE) { puts("manager_new: Permission denied. Skipping test."); return EXIT_TEST_SKIP; } |