diff options
author | Simon McVittie <smcv@collabora.com> | 2017-11-14 14:09:59 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2017-11-15 12:11:54 +0000 |
commit | ed40af9284b4ea658b8b7debfa42530a1c28bbf1 (patch) | |
tree | dd2b770ecec0a6437808ecc1fd7ce4efc6d24e5c /dbus/dbus-keyring.c | |
parent | 5ffb709b42783b0d13a49b8c9a84c75f556c88a2 (diff) | |
download | dbus-ed40af9284b4ea658b8b7debfa42530a1c28bbf1.tar.gz |
Embedded tests: Emit TAP diagnostics instead of printf
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601
Diffstat (limited to 'dbus/dbus-keyring.c')
-rw-r--r-- | dbus/dbus-keyring.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-keyring.c b/dbus/dbus-keyring.c index d9adaa6a..34b7311f 100644 --- a/dbus/dbus-keyring.c +++ b/dbus/dbus-keyring.c @@ -27,6 +27,7 @@ #include <dbus/dbus-string.h> #include <dbus/dbus-list.h> #include <dbus/dbus-sysdeps.h> +#include <dbus/dbus-test-tap.h> /** * @defgroup DBusKeyring keyring class @@ -1128,7 +1129,7 @@ _dbus_keyring_test (void) ++i; } - printf (" %d keys in test\n", ring1->n_keys); + _dbus_test_diag (" %d keys in test", ring1->n_keys); /* Test ref/unref */ _dbus_keyring_ref (ring1); |