]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Jun 2018 21:01:25 +0000 (23:01 +0200)
commit24924cc959561c0aea09821a1b1d975a2e5f5d52
tree9eee66cdb87749c3b1b4120a90986f80e3441b3e
parent83b6c1a6b147d42a1077ad589f48ad5cd74ecea1
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]