chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-engine: fix access to unit load path
[elogind.git]
/
src
/
test
/
test-sched-prio.c
diff --git
a/src/test/test-sched-prio.c
b/src/test/test-sched-prio.c
index e984ee420375478b828d075d00e1156301511d71..8fdca0ea23b71cf66d9f6dbb5cccedfba2a6476f 100644
(file)
--- 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;
FILE *serial = NULL;
FDSet *fdset = NULL;
int r;
- const char *dir = TEST_DIR;
/* prepare the test */
/* 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;
if (r == -EPERM || r == -EACCES || r == -EADDRINUSE || r == -EHOSTDOWN) {
printf("Skipping test: manager_new: %s", strerror(-r));
return EXIT_TEST_SKIP;