summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2008-05-28 18:11:01 (GMT)
committerColin Walters <walters@verbum.org>2008-05-28 18:11:01 (GMT)
commit1744bf88024756d17f867ab9b86aca25e2b77e64 (patch)
treeb31f9f7c21182bea0d248ebf5dd7dbe3b07ed6f7
parenta94e11973467e1b2cc43ba1e77b7413655b1dff7 (diff)
downloaddbus-glib-1744bf88024756d17f867ab9b86aca25e2b77e64.tar.gz
dbus-glib-1744bf88024756d17f867ab9b86aca25e2b77e64.tar.xz
Remove GConnection tests that assert, since we abort on those
-rw-r--r--test/core/test-types.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/core/test-types.c b/test/core/test-types.c
index 7ea721b..5241a9f 100644
--- a/test/core/test-types.c
+++ b/test/core/test-types.c
@@ -29,16 +29,6 @@ main (int argc, char **argv)
g_type_init ();
dbus_error_init (&derror);
- /* Check plain DBusConnection -> DBusGConnection fails. */
- conn = dbus_bus_get (DBUS_BUS_SESSION, &derror);
- if (!conn)
- lose ("Cannot get connection: %s", derror.message);
- g_print ("(expecting assertion...)\n");
- gconn = dbus_connection_get_g_connection (conn);
- if (gconn)
- lose ("Retrieved DBusGConection from plain DBusConnection");
-
-
/* Check DBusGConnection -> DBusConnection -> DBusGConnection */
gconn = dbus_g_bus_get (DBUS_BUS_SESSION, &gerror);
if (!gconn)
@@ -53,22 +43,6 @@ main (int argc, char **argv)
lose ("Retrieved DBusGConection != original DBusGConnection");
dbus_g_connection_unref (gconn);
-
-
- /* Check NULL -> DBusGConnection */
- g_print ("(expecting assertion...)\n");
- gconn = dbus_connection_get_g_connection (NULL);
- if (gconn)
- lose ("Retrieved DBusGConection from NULL");
-
-
- /* Check NULL -> DBusConnection */
- g_print ("(expecting assertion...)\n");
- conn = dbus_g_connection_get_connection (NULL);
- if (conn)
- lose ("Retrieved DBusConection from NULL");
-
- g_print ("\nTest completed.\n");
return 0;
}