summaryrefslogtreecommitdiff
path: root/src/test/test-engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test-engine.c')
-rw-r--r--src/test/test-engine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test-engine.c b/src/test/test-engine.c
index 3ec2dfe10e..3c0c18b188 100644
--- a/src/test/test-engine.c
+++ b/src/test/test-engine.c
@@ -37,10 +37,9 @@ int main(int argc, char *argv[]) {
Job *j;
int r;
- assert_se(runtime_dir = setup_fake_runtime_dir());
-
/* prepare the test */
assert_se(set_unit_path(TEST_DATA_DIR("")) >= 0);
+ assert_se(runtime_dir = setup_fake_runtime_dir());
r = manager_new(UNIT_FILE_USER, true, &m);
if (MANAGER_SKIP_TEST(r)) {
log_notice_errno(r, "Skipping test: manager_new: %m");