chiark / gitweb /
test-bus-util: add a simple test for bus_request_name_async_may_reload_dbus()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Jun 2018 13:15:17 +0000 (15:15 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commitf44b01c3269d71cff4566a894fe48c35ca77e11c
tree97c0fafae556b9810c3626e9ee9e7b5d2b58a355
parent6572d346a00323a73ef515c0c3de0ec0e7f29bbd
test-bus-util: add a simple test for bus_request_name_async_may_reload_dbus()

This shows a minor memleak:
==1883== 24 bytes in 1 blocks are definitely lost in loss record 1 of 1
==1883==    at 0x4C2DBAB: malloc (vg_replace_malloc.c:299)
==1883==    by 0x4E9D385: malloc_multiply (alloc-util.h:69)
==1883==    by 0x4EA2959: bus_request_name_async_may_reload_dbus (bus-util.c:1841)
==1883==    by ...

The exchange of messages is truncated at two different points: once right
after the first callback is requested, and the second time after the full
sequence has run (usually resulting in an error because of policy).
src/test/meson.build
src/test/test-bus-util.c [new file with mode: 0644]