From: Matthias Clasen Date: Wed, 4 Apr 2012 18:56:17 +0000 (-0400) Subject: Switch to using a mainloop when waiting for connection close X-Git-Tag: 2.32.1~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69d698799563a0276550c339157a01d10d9e95dc;p=platform%2Fupstream%2Fglib.git 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. --- 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 */