chiark / gitweb /
implement drop-in directories
[elogind.git] / test-engine.c
index c14a3402dd00fdbb5ef190c35d15b2eefaca8662..85d7697c353c9391ee11d5629e207aa5a7ac099f 100644 (file)
@@ -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());