]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix compiling tests with minGW
authorPavel Hrdina <phrdina@redhat.com>
Thu, 22 Jul 2021 09:45:38 +0000 (11:45 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 22 Jul 2021 13:07:17 +0000 (15:07 +0200)
commite7934a7a6d0db76b96340a3121352cc7031b0e10
tree94d79abea1b74932a54040c28058558781a48746
parent94944e38d7c250a26705319451a5ddfc7478da7e
tests: fix compiling tests with minGW

We need to mock virQEMUCapsGetKVMSupportsSecureGuest only if compiling
with QEMU otherwise compilation will fail with error:

/usr/lib/gcc/i686-w64-mingw32/11.1.1/../../../../i686-w64-mingw32/bin/ld: tests/libdomaincapsmock.dll.p/domaincapsmock.c.obj: in function `virQEMUCapsGetKVMSupportsSecureGuest':
/builds/libvirt/libvirt/build/../tests/domaincapsmock.c:40: undefined reference to `virQEMUCapsGet'
/usr/lib/gcc/i686-w64-mingw32/11.1.1/../../../../i686-w64-mingw32/bin/ld: /builds/libvirt/libvirt/build/../tests/domaincapsmock.c:41: undefined reference to `virQEMUCapsGet'

Fixes: 248a30c0c0ec2610e8fa2bbbc98da6d06978ad2e
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/domaincapsmock.c