summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/testlib/selftests/tst_selftests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/tst_selftests.cpp b/tests/auto/testlib/selftests/tst_selftests.cpp
index 1839737d15..13afe6f7e5 100644
--- a/tests/auto/testlib/selftests/tst_selftests.cpp
+++ b/tests/auto/testlib/selftests/tst_selftests.cpp
@@ -943,7 +943,7 @@ static QProcessEnvironment testEnvironment()
|| key == "QEMU_SET_ENV" || key == "QEMU_LD_PREFIX" // Required for QEMU
# if !defined(Q_OS_MACOS)
|| key == "DISPLAY" || key == "XAUTHLOCALHOSTNAME"
- || key.startsWith("XDG_")
+ || key.startsWith("XDG_") || key == "XAUTHORITY"
# endif // !Q_OS_MACOS
#endif // Q_OS_UNIX
#ifdef __COVERAGESCANNER__