summaryrefslogtreecommitdiff
path: root/test/uid-permissions.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/uid-permissions.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/uid-permissions.c')
-rw-r--r--test/uid-permissions.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/uid-permissions.c b/test/uid-permissions.c
index 4642ff37..24f6f725 100644
--- a/test/uid-permissions.c
+++ b/test/uid-permissions.c
@@ -238,6 +238,8 @@ int
main (int argc,
char **argv)
{
+ int ret;
+
test_init (&argc, &argv);
/* UpdateActivationEnvironment used to be allowed by dbus-daemon for root
@@ -257,5 +259,7 @@ main (int argc,
g_test_add ("/uid-permissions/monitor/other", Fixture, &other_fail_config,
setup, test_monitor, teardown);
- return g_test_run ();
+ ret = g_test_run ();
+ dbus_shutdown ();
+ return ret;
}