test-autolaunch is only known to work in launchd environments.
[platform/upstream/dbus.git] / test / test-shell-service.c
index 79a4949..57c1612 100644 (file)
@@ -1,3 +1,4 @@
+#include <config.h>
 
 #include "test-utils.h"
 
@@ -36,12 +37,11 @@ handle_echo (DBusConnection     *connection,
   DBusMessage *reply;
   DBusMessageIter iter;
   int i;
-  char *s;
   EchoData *d;
 
   _dbus_verbose ("sending reply to Echo method\n");
 
-  if (!dbus_connection_get_object_path_data (connection, echo_path, &d))
+  if (!dbus_connection_get_object_path_data (connection, echo_path, (void **)&d))
       die ("No memory");
 
 
@@ -86,7 +86,6 @@ path_message_func (DBusConnection  *connection,
                                         "org.freedesktop.TestSuite",
                                         "Exit"))
     {
-      dbus_connection_close (connection);
       quit ();
       return DBUS_HANDLER_RESULT_HANDLED;
     }
@@ -110,7 +109,6 @@ filter_func (DBusConnection     *connection,
                               DBUS_INTERFACE_LOCAL,
                               "Disconnected"))
     {
-      dbus_connection_close (connection);
       quit ();
       return DBUS_HANDLER_RESULT_HANDLED;
     }