diff --git a/tests/testutils.c b/tests/testutils.c index 5fd81b70a26a6a2bdc593cf752c25ba0cc1deaf3..7f1776b2449b5b763f87bcd3b5ab5cc6b482691b 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -767,6 +767,9 @@ int virTestMain(int argc, preloads[npreloads] = NULL; } + g_setenv("HOME", "/bad-test-used-env-home", TRUE); + g_setenv("XDG_RUNTIME_DIR", "/bad-test-used-env-xdg-runtime-dir", TRUE); + va_start(ap, func); while ((lib = va_arg(ap, const char *))) { if (!virFileIsExecutable(lib)) {