summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-22 15:58:39 +0100
committerKay Sievers <kay@vrfy.org>2013-11-22 15:58:39 +0100
commit254ed85a8c6ff182133a9843125e541929ba8197 (patch)
tree3fca660706b9b7c8a32c02b74f42e8a6562d9d16 /src
parentab9cbe342e5550e46731411a7166d3d9f7808adf (diff)
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. =================================
Diffstat (limited to 'src')
-rw-r--r--src/test/test-sched-prio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c
index aee75e81cf..208fca8540 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);