summaryrefslogtreecommitdiff
path: root/test/test-utils.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-19 17:34:10 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-01-21 14:22:39 +0000
commita9327eba3c163583edef7b76eb3aba134999344d (patch)
treeb353e18e47fb87b95cd25b051527bcdc71cf0582 /test/test-utils.c
parente529c4bcdbe51502662666c6cf8acae3e2446873 (diff)
downloaddbus-a9327eba3c163583edef7b76eb3aba134999344d.tar.gz
test_server_shutdown: disconnect the server before causing it to be freed
Otherwise we die with an assertion failure. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33277
Diffstat (limited to 'test/test-utils.c')
-rw-r--r--test/test-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-utils.c b/test/test-utils.c
index 1c78812a..05cd7535 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -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,