mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
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>
This commit is contained in:
parent
71b1d738e2
commit
643e5526c5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user