diff options
author | Havoc Pennington <hp@redhat.com> | 2003-04-07 23:28:16 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-04-07 23:28:16 +0000 |
commit | fe22b2194d53061fefe64d48ff6a53e6a762279d (patch) | |
tree | 590e2096930716d80fb2ba1ebfce10c10e08efda /test/test-utils.c | |
parent | 1617fbe36c0bc2952093fc167b6edffdf32c445e (diff) |
2003-04-07 Havoc Pennington <hp@redhat.com>
* doc/dbus-specification.sgml: require that base service names
start with ':' and that the base service is created/deleted
as first and last things a connection does on the bus
* bus/dispatch.c (check_existent_service_activation): lots more
work on the activation test; it doesn't fully pass yet...
* test/test-service.c (main): fix so we don't memleak the
connection to the message bus
(filter_func): accept a message asking us to exit
Diffstat (limited to 'test/test-utils.c')
-rw-r--r-- | test/test-utils.c | 20 |
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"); + +} |