test_server_shutdown: disconnect the server before causing it to be freed
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 19 Jan 2011 17:34:10 +0000 (17:34 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 21 Jan 2011 14:22:39 +0000 (14:22 +0000)
Otherwise we die with an assertion failure.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277

test/test-utils.c

index 1c78812..05cd753 100644 (file)
@@ -334,6 +334,8 @@ void
 test_server_shutdown (DBusLoop         *loop,
                       DBusServer       *server)
 {
+  dbus_server_disconnect (server);
+
   if (!dbus_server_set_watch_functions (server,
                                         NULL, NULL, NULL,
                                         NULL,