mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
3922de0ce2
commit
e62db9ee5b
|
@ -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 *))) {
|
||||
|
|
Loading…
Reference in New Issue