tests: Don't build virgdbusmock on Windows

All of the tests that use this mock (networkxml2firewalltest,
virsystemdtest, virpolkittest) are either no-ops on Windows, or
are not compiled at all on the target.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-03-30 16:07:33 +02:00
parent dc6cdf405d
commit 84f2399c9e

View File

@ -82,7 +82,6 @@ mock_libs = [
{ 'name': 'virdnsmasqmock' },
{ 'name': 'virfilecachemock' },
{ 'name': 'virfirewallmock' },
{ 'name': 'virgdbusmock', 'deps': [ virgdbusmock_dep] },
{ 'name': 'virhostcpumock' },
{ 'name': 'virhostdevmock' },
{ 'name': 'virnetdaemonmock' },
@ -104,6 +103,12 @@ if host_machine.system() == 'linux'
]
endif
if host_machine.system() != 'windows'
mock_libs += [
{ 'name': 'virgdbusmock', 'deps': [ virgdbusmock_dep] },
]
endif
# build libraries used by tests