From 95ca9782d0ca105e14673b45acfeb8b66208b6c8 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Mon, 6 Oct 2025 15:43:52 +0200 Subject: tests: Avoid more GDBusConnection leaks The atk-bridge has started "leaking" a GDBusConnection since 2.57.0; disable it since it's not needed for the test. The GTK Wayland backend also "leaks" a GDBusConnection used to read settings in place of xsettings; force using the X11 backend. --- tests/test-indicator-ng.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-indicator-ng.c b/tests/test-indicator-ng.c index 774b000..2b93236 100644 --- a/tests/test-indicator-ng.c +++ b/tests/test-indicator-ng.c @@ -174,11 +174,13 @@ test_menu (void) int main (int argc, char **argv) { - /* gvfs, dconf, and appmenu-gtk leak GDbusConnections, which confuses + /* gvfs, dconf, appmenu-gtk, atk-bridge and gdk-wayland leak GDbusConnections, which confuses * g_test_dbus_down. Make sure we're not using any of those. */ g_setenv ("GIO_USE_VFS", "local", TRUE); g_setenv ("GSETTINGS_BACKEND", "memory", TRUE); + g_setenv ("NO_AT_BRIDGE", "1", TRUE); + g_setenv ("GDK_BACKEND", "x11", TRUE); g_unsetenv ("UBUNTU_MENUPROXY"); g_test_init (&argc, &argv, NULL); -- cgit v1.2.3