From 69d698799563a0276550c339157a01d10d9e95dc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 4 Apr 2012 14:56:17 -0400 Subject: [PATCH] Switch to using a mainloop when waiting for connection close GDBus heavily relies on idles for some of its cleanup operations, and not running a mainloop leads to things not getting cleaned up properly, which in turn leads to test failures, since the session bus singleton does not get removed. --- gio/tests/gdbus-tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/tests/gdbus-tests.c b/gio/tests/gdbus-tests.c index c87a50f..58b1e60 100644 --- a/gio/tests/gdbus-tests.c +++ b/gio/tests/gdbus-tests.c @@ -158,7 +158,7 @@ _g_bus_get_priv (GBusType bus_type, /* ---------------------------------------------------------------------------------------------------- */ -#if 1 +#if 0 /* toggle refs are not easy to use (maybe not even safe) when multiple * threads are involved so implement this by busy-waiting for now */ -- 2.7.4