summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-09-23 16:27:52 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-09-23 16:28:59 -0400
commit643e5526c515f0ee6e681b806fda36eaaa3f263c (patch)
tree206e72e0dcb51af5afbc3b02a15a7ebd87cc6ebb
parent71b1d738e2c0fe900b6bb6672aa464ce74b489b3 (diff)
GDBus: fix name test cases
Since we make message buses come and go, we need to ensure that the singleton connection instance goes away before attempting to call g_bus_get_sync() or similar. Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--gio/tests/gdbus-names.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/tests/gdbus-names.c b/gio/tests/gdbus-names.c
index d69d0bf8a..80e41a5d4 100644
--- a/gio/tests/gdbus-names.c
+++ b/gio/tests/gdbus-names.c
@@ -445,6 +445,7 @@ test_bus_own_name (void)
g_bus_unown_name (id);
g_assert_cmpint (data.num_free_func, ==, 4);
+ _g_object_wait_for_single_ref (c);
g_object_unref (c);
g_object_unref (c2);
}