summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/core/test-profile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/core/test-profile.c b/test/core/test-profile.c
index ac8870d..cf20bb1 100644
--- a/test/core/test-profile.c
+++ b/test/core/test-profile.c
@@ -206,6 +206,8 @@ no_bus_thread_func (void *data)
exit (1);
}
+ dbus_connection_set_exit_on_disconnect (connection, FALSE);
+
context = g_main_context_new ();
cd.iterations = 1;
@@ -376,6 +378,8 @@ with_bus_thread_func (void *data)
exit (1);
}
+ dbus_connection_set_exit_on_disconnect (connection, FALSE);
+
if (!dbus_bus_register (connection, &error))
{
g_printerr ("could not register with bus: %s\n", error.message);
@@ -531,6 +535,8 @@ with_bus_init_server (ServerData *sd)
connection = dbus_g_connection_get_connection (gconnection);
+ dbus_connection_set_exit_on_disconnect (connection, FALSE);
+
dbus_bus_request_name (connection,
ECHO_SERVICE,
0, NULL); /* ignore errors because we suck */