diff options
Diffstat (limited to 'src/test/test-engine.c')
-rw-r--r-- | src/test/test-engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-engine.c b/src/test/test-engine.c index fa64fbefab..0169f8320f 100644 --- a/src/test/test-engine.c +++ b/src/test/test-engine.c @@ -89,8 +89,8 @@ int main(int argc, char *argv[]) { /* prepare the test */ _cleanup_free_ char *unit_dir = NULL; - assert_se(get_testdata_dir("units", &unit_dir) >= 0); - assert_se(set_unit_path(unit_dir) >= 0); + ASSERT_OK(get_testdata_dir("units", &unit_dir)); + ASSERT_OK(setenv_unit_path(unit_dir)); assert_se(runtime_dir = setup_fake_runtime_dir()); r = manager_new(RUNTIME_SCOPE_USER, MANAGER_TEST_RUN_BASIC, &m); |