diff options
author | Bastien Nocera <hadess@hadess.net> | 2023-01-18 11:47:23 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2023-01-18 11:47:23 +0100 |
commit | 6f39eefb677d1f599c5dcea4161d375f74f50da4 (patch) | |
tree | da5c7d6669a361398baa368ada6f8f6bcd798bbc | |
parent | e80d952335c9e64dc55e0a27920b106869b0ed05 (diff) | |
download | glib-wip/hadess/memory-monitor-tests-2.tar.gz |
gio: Work-around GIO bug in memory monitor testswip/hadess/memory-monitor-tests-2
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.
-rwxr-xr-x | gio/tests/memory-monitor-dbus.py.in | 1 | ||||
-rwxr-xr-x | gio/tests/memory-monitor-portal.py.in | 1 |
2 files changed, 2 insertions, 0 deletions
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() |