]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: make sure test-path-lookup can run even when no units are installed on test...
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Apr 2016 17:15:12 +0000 (19:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:31 +0000 (13:43 +0200)
src/test/test-path-lookup.c

index 5ee6f4ebb2ba50e547f1473a45aa6f63150f48d1..6ef0535ecb5dea5d2457b043d3725c6af73aeef1 100644 (file)
@@ -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);