diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-01-07 08:41:24 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-20 19:48:16 -0400 |
commit | 0d8c31ff7237149b505290652864b4e7e866b2a7 (patch) | |
tree | 2a1497d3b0384fb7ab20c6010276be0e166619eb /src/test/test-sched-prio.c | |
parent | f0ea29eaeb3449822bfbdfa839b00e323dfc523e (diff) |
test-engine: fix access to unit load path
Also add a bit of debugging output to help diagnose problems,
add missing units, and simplify cppflags.
Move test-engine to normal tests from manual tests, it should now
work without destroying the system.
Diffstat (limited to 'src/test/test-sched-prio.c')
-rw-r--r-- | src/test/test-sched-prio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test-sched-prio.c b/src/test/test-sched-prio.c index e984ee4203..8fdca0ea23 100644 --- a/src/test/test-sched-prio.c +++ b/src/test/test-sched-prio.c @@ -31,11 +31,10 @@ int main(int argc, char *argv[]) { FILE *serial = NULL; FDSet *fdset = NULL; int r; - const char *dir = TEST_DIR; /* prepare the test */ - assert_se(set_unit_path(dir) >= 0); - r = manager_new(SYSTEMD_USER, &m); + assert_se(set_unit_path(TEST_DIR) >= 0); + r = manager_new(SYSTEMD_USER, true, &m); if (r == -EPERM || r == -EACCES || r == -EADDRINUSE || r == -EHOSTDOWN) { printf("Skipping test: manager_new: %s", strerror(-r)); return EXIT_TEST_SKIP; |