summaryrefslogtreecommitdiffstats
path: root/test/test-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-utils.c')
-rw-r--r--test/test-utils.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test-utils.c b/test/test-utils.c
index d7ccd931..62963f38 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -176,3 +176,23 @@ test_connection_setup (DBusLoop *loop,
cdata_free (cd);
return FALSE;
}
+
+void
+test_connection_shutdown (DBusLoop *loop,
+ DBusConnection *connection)
+{
+ if (!dbus_connection_set_watch_functions (connection,
+ NULL,
+ NULL,
+ NULL,
+ NULL, NULL))
+ _dbus_assert_not_reached ("setting watch functions to NULL failed");
+
+ if (!dbus_connection_set_timeout_functions (connection,
+ NULL,
+ NULL,
+ NULL,
+ NULL, NULL))
+ _dbus_assert_not_reached ("setting timeout functions to NULL failed");
+
+}