From eed77e5276ef5df01a0c5e1f5237860fe88e4b58 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 30 May 2008 10:39:17 -0400 Subject: [PATCH] Small tweaks to shutdown test --- test/name-test/test-shutdown.c | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/test/name-test/test-shutdown.c b/test/name-test/test-shutdown.c index e4c3de5..c50ef4b 100644 --- a/test/name-test/test-shutdown.c +++ b/test/name-test/test-shutdown.c @@ -29,12 +29,7 @@ open_destroy_shared_session_bus_connection () connection = dbus_connection_open (session_addr_no_guid, &error); free (session_addr_no_guid); if (connection == NULL) - { - fprintf (stderr, "*** Failed to open connection to temp session bus: %s\n", - error.message); - dbus_error_free (&error); - return 1; - } + die ("Failed to open connection to temp session bus\n"); loop = _dbus_loop_new (); if (loop == NULL) @@ -47,7 +42,7 @@ open_destroy_shared_session_bus_connection () _dbus_loop_unref (loop); - dbus_connection_unref (connection); + dbus_connection_unref (connection); } int -- 1.5.4.1