From 6f39eefb677d1f599c5dcea4161d375f74f50da4 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 18 Jan 2023 11:47:23 +0100 Subject: gio: Work-around GIO bug in memory monitor tests Start a session bus in the memory monitor tests, as something in GIO, or python-dbusmock waits on one appearing, blocking the system bus and stopping us from being able to receive signals. --- gio/tests/memory-monitor-dbus.py.in | 1 + gio/tests/memory-monitor-portal.py.in | 1 + 2 files changed, 2 insertions(+) diff --git a/gio/tests/memory-monitor-dbus.py.in b/gio/tests/memory-monitor-dbus.py.in index acbc576ca..09009ae32 100755 --- a/gio/tests/memory-monitor-dbus.py.in +++ b/gio/tests/memory-monitor-dbus.py.in @@ -37,6 +37,7 @@ try: @classmethod def setUpClass(klass): klass.start_system_bus() + klass.start_session_bus() klass.dbus_con = klass.get_dbus(True) def setUp(self): diff --git a/gio/tests/memory-monitor-portal.py.in b/gio/tests/memory-monitor-portal.py.in index d06fad297..73bf83c2c 100755 --- a/gio/tests/memory-monitor-portal.py.in +++ b/gio/tests/memory-monitor-portal.py.in @@ -39,6 +39,7 @@ try: @classmethod def setUpClass(klass): klass.start_system_bus() + klass.start_session_bus() klass.dbus_con = klass.get_dbus(True) # Start session bus so that xdg-desktop-portal can run on it klass.start_session_bus() -- cgit v1.2.1