From d1c7eefb66483c3ea4d9e7fb6dca23dcfac8cad5 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 5 May 2003 03:13:35 +0000 Subject: 2003-05-04 Havoc Pennington * dbus/dbus-message-handler.c (_dbus_message_handler_test): add unit test * dbus/dbus-marshal.c (_dbus_demarshal_string_array): fix this function, which assumed length was in # of strings, not bytes * dbus/dbus-message.c (_dbus_message_test): add tests for some missing coverage * dbus/dbus-connection.c (_dbus_connection_queue_received_message): disable function for now, we are only using it in test mode * dbus/dbus-message.c (_dbus_message_loader_queue_messages): remove a mistaken FIXME --- dbus/dbus-keyring.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dbus/dbus-keyring.c') diff --git a/dbus/dbus-keyring.c b/dbus/dbus-keyring.c index 6606ee99..b5974af0 100644 --- a/dbus/dbus-keyring.c +++ b/dbus/dbus-keyring.c @@ -1138,6 +1138,14 @@ _dbus_keyring_test (void) printf (" %d keys in test\n", ring1->n_keys); + /* Test ref/unref */ + _dbus_keyring_ref (ring1); + _dbus_keyring_ref (ring2); + _dbus_keyring_unref (ring1); + _dbus_keyring_unref (ring2); + + + /* really unref */ _dbus_keyring_unref (ring1); _dbus_keyring_unref (ring2); -- cgit v1.2.1