diff --git a/src/test/test-path-lookup.c b/src/test/test-path-lookup.c index 892293cb10..d6ea659d1d 100644 --- a/src/test/test-path-lookup.c +++ b/src/test/test-path-lookup.c @@ -40,6 +40,8 @@ static void test_user_and_global_paths(void) { unsigned k = 0; assert_se(unsetenv("SYSTEMD_UNIT_PATH") == 0); + assert_se(unsetenv("XDG_DATA_DIRS") == 0); + assert_se(unsetenv("XDG_CONFIG_DIRS") == 0); assert_se(lookup_paths_init(&lp_global, UNIT_FILE_GLOBAL, 0, NULL) == 0); assert_se(lookup_paths_init(&lp_user, UNIT_FILE_USER, 0, NULL) == 0);