]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: mock libdbus in networkxml2firewalltest
authorPavel Hrdina <phrdina@redhat.com>
Tue, 15 Sep 2020 11:55:53 +0000 (13:55 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 17 Sep 2020 16:19:46 +0000 (18:19 +0200)
commit1db95f72e11e4be225eafd5a709c4c7f514644c3
tree899e2a2b487ccfae9409bce4b2238e31a33ca718
parentde3289e2b5387d7448393c70e84e27e4d1b69089
tests: mock libdbus in networkxml2firewalltest

This test calls into src/util/virfirewalld.c where it uses DBus to
figure out if firewalld is registered. Without the mock it luckily
fails and the test works correctly.

To isolate the tests from host environment we should mock the DBus
calls.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/meson.build
tests/networkxml2firewalltest.c