tests: Poison more XDG variables

We use these in QEMU command lines, so we should poison them
to catch test suite issues.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-03-02 17:59:06 +01:00
parent 3922de0ce2
commit e62db9ee5b
1 changed files with 3 additions and 0 deletions

View File

@ -820,6 +820,9 @@ int virTestMain(int argc,
g_setenv("HOME", "/bad-test-used-env-home", TRUE);
g_setenv("XDG_RUNTIME_DIR", "/bad-test-used-env-xdg-runtime-dir", TRUE);
g_setenv("XDG_DATA_HOME", "/bad-test-used-env-xdg-data-home", TRUE);
g_setenv("XDG_CACHE_HOME", "/bad-test-used-env-xdg-cache-home", TRUE);
g_setenv("XDG_CONFIG_HOME", "/bad-test-used-env-xdg-config-home", TRUE);
va_start(ap, func);
while ((lib = va_arg(ap, const char *))) {