From 27b65f054da59f2ce660af6b1c3ecdc2647c07bd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 22 Sep 2011 19:04:23 +0100 Subject: Separate the test for shared-bus equivalence into its own binary When valgrinding tests it's useful to avoid using the shared bus, which cannot be closed. Move all the essential shared-bus use into a test which can be treated specially. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41129 Signed-off-by: Simon McVittie --- test/core/test-dbus-glib.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'test/core/test-dbus-glib.c') diff --git a/test/core/test-dbus-glib.c b/test/core/test-dbus-glib.c index ffc2ae9..1b8c3fc 100644 --- a/test/core/test-dbus-glib.c +++ b/test/core/test-dbus-glib.c @@ -549,11 +549,6 @@ main (int argc, char **argv) if (connection == NULL) lose_gerror ("Failed to open connection to bus", error); - /* should always get the same one */ - g_assert (connection == dbus_g_bus_get (DBUS_BUS_SESSION, NULL)); - g_assert (connection == dbus_g_bus_get (DBUS_BUS_SESSION, NULL)); - g_assert (connection == dbus_g_bus_get (DBUS_BUS_SESSION, NULL)); - /* Create a proxy object for the "bus driver" */ driver = dbus_g_proxy_new_for_name (connection, -- cgit v1.2.1