From: Lennart Poettering Date: Wed, 6 Apr 2016 17:15:12 +0000 (+0200) Subject: tests: make sure test-path-lookup can run even when no units are installed on test... X-Git-Tag: v230~185^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e46e442243d45fa2a0214baabe478a6f21ad0858;p=thirdparty%2Fsystemd.git tests: make sure test-path-lookup can run even when no units are installed on test system --- diff --git a/src/test/test-path-lookup.c b/src/test/test-path-lookup.c index 5ee6f4ebb2b..6ef0535ecb5 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);