]> xenbits.xensource.com Git - libvirt.git/commit
test: Link qemuhotplugmock with test_utils_qemu and test_utils
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Apr 2022 10:22:37 +0000 (12:22 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 5 May 2022 11:26:23 +0000 (13:26 +0200)
commit47503cc85991ed460eeaf114997b6127278ff25f
tree403db3cb8301bf41319b5c7337a764adf2dd587e
parentb399f2c00044394cd465a44e0f839f4abf2c4dc4
test: Link qemuhotplugmock with test_utils_qemu and test_utils

As of ad81aa8ad07 the qemuhotplugmock.c calls
testQemuPrepareHostBackendChardevOne() which is implemented in
testutilsqemu.c. However, the mock is not linked with
testutilsqemu static library which makes some tools (valgrind
particularly) unhappy because the resulting mock library has
unresolved symbol.

The fix is simple, link mock library with test_utils_qemu_lib and
also with test_utils_lib since testutils.c calls some functions
from testutils.c.

Since these two libraries are declared only after mock_libs[], I
had to move the line that declares qemuhotplugmock after those
two.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/meson.build