summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-06 19:15:12 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-12 13:43:31 +0200
commite46e442243d45fa2a0214baabe478a6f21ad0858 (patch)
tree1baade6f4428356f0860a5a13c1d59c7eaa6c5fc /src
parent5de344704df64d8f31448f1222432bc87ddcfbef (diff)
tests: make sure test-path-lookup can run even when no units are installed on test system
Diffstat (limited to 'src')
-rw-r--r--src/test/test-path-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-path-lookup.c b/src/test/test-path-lookup.c
index 5ee6f4ebb2..6ef0535ecb 100644
--- a/src/test/test-path-lookup.c
+++ b/src/test/test-path-lookup.c
@@ -37,8 +37,8 @@ static void test_paths(UnitFileScope scope) {
assert_se(unsetenv("SYSTEMD_UNIT_PATH") == 0);
assert_se(lookup_paths_init(&lp_without_env, scope, NULL) >= 0);
- assert_se(lookup_paths_reduce(&lp_without_env) >= 0);
assert_se(!strv_isempty(lp_without_env.search_path));
+ assert_se(lookup_paths_reduce(&lp_without_env) >= 0);
systemd_unit_path = strjoina(template, "/systemd-unit-path");
assert_se(setenv("SYSTEMD_UNIT_PATH", systemd_unit_path, 1) == 0);