[glib/glib-2-26] GDBus: fix name test cases
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-26] GDBus: fix name test cases
- Date: Fri, 24 Sep 2010 18:49:34 +0000 (UTC)
commit 69a7645a7a2a2b35470e59941bcfd6a07575a3d5
Author: David Zeuthen <davidz redhat com>
Date: Thu Sep 23 16:27:52 2010 -0400
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>
gio/tests/gdbus-names.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/gdbus-names.c b/gio/tests/gdbus-names.c
index d69d0bf..80e41a5 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]