From ebf31ed7fec8a5a10c621e2a051f918a03d3ed6b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 19 Jan 2011 17:34:10 +0000 Subject: [PATCH 3/3] 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 --- test/test-utils.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/test-utils.c b/test/test-utils.c index 1c78812..05cd753 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, -- 1.7.2.3