summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-02-05 13:08:07 +0100
committerBenjamin Berg <bberg@redhat.com>2019-02-05 14:26:17 +0100
commitaa926b6793c90c73bd9469345cb613dc63e57612 (patch)
tree559ed8bc01768224b10b60a173e95c22408406e4 /tests
parenta4fe84ed8b874c0c215ed8670861e34ad5feede9 (diff)
downloadgnome-settings-daemon-aa926b6793c90c73bd9469345cb613dc63e57612.tar.gz
tests: Prevent SESSION_MANAGER environment variable to leak into test
This appears to possible trigger crashes *outside* of the test environment.
Diffstat (limited to 'tests')
-rw-r--r--tests/gsdtestcase.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gsdtestcase.py b/tests/gsdtestcase.py
index 22a457a3..3d198cb0 100644
--- a/tests/gsdtestcase.py
+++ b/tests/gsdtestcase.py
@@ -61,6 +61,9 @@ class GSDTestCase(X11SessionTestCase):
os.environ['LC_MESSAGES'] = 'C'
klass.workdir = tempfile.mkdtemp(prefix='gsd-plugin-test')
+ # Prevent applications from accessing an outside session manager
+ os.environ['SESSION_MANAGER'] = ''
+
# Signal to mutter and gnome-session that we are using X11
os.environ['XDG_SESSION_TYPE'] = 'x11'