summaryrefslogtreecommitdiff
path: root/test/dbus-daemon-eavesdrop.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-07-11 16:40:12 +0100
committerSimon McVittie <smcv@collabora.com>2018-08-02 17:14:39 +0100
commite95dc1d58f45e61f79d467ebc132fc2fc17c62b6 (patch)
treed3f6a6c86ef5926e26bc5d01fb275940557d7317 /test/dbus-daemon-eavesdrop.c
parent769c367f734cf9674eb2b153740105979f714548 (diff)
downloaddbus-e95dc1d58f45e61f79d467ebc132fc2fc17c62b6.tar.gz
tests: Call dbus_shutdown()
Not all of these tests will be fully valgrind-clean yet (or perhaps ever), but it's easier to add this to all of them than to think about it. Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194
Diffstat (limited to 'test/dbus-daemon-eavesdrop.c')
-rw-r--r--test/dbus-daemon-eavesdrop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/dbus-daemon-eavesdrop.c b/test/dbus-daemon-eavesdrop.c
index d2c0872d..be21d0ab 100644
--- a/test/dbus-daemon-eavesdrop.c
+++ b/test/dbus-daemon-eavesdrop.c
@@ -421,6 +421,8 @@ int
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
g_test_add ("/eavedrop/match_keyword/broadcast", Fixture, NULL,
@@ -431,5 +433,7 @@ main (int argc,
g_test_add ("/eavedrop/match_keyword/unicast_to_sender", Fixture, NULL,
setup, test_eavesdrop_unicast_to_sender, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}