summaryrefslogtreecommitdiff
path: root/test-engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-engine.c')
-rw-r--r--test-engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-engine.c b/test-engine.c
index c14a3402dd..85d7697c35 100644
--- a/test-engine.c
+++ b/test-engine.c
@@ -12,7 +12,7 @@ int main(int argc, char *argv[]) {
Unit *a = NULL, *b = NULL, *c = NULL, *d = NULL, *e = NULL, *g = NULL, *h = NULL;
Job *j;
- assert_se(chdir("test2") == 0);
+ assert_se(set_unit_path("test2") >= 0);
assert_se(m = manager_new());