From 84f2399c9ed31669adcc136bc04cc121b8e46ed2 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Thu, 30 Mar 2023 16:07:33 +0200 Subject: [PATCH] tests: Don't build virgdbusmock on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Jonathon Jongsma Reviewed-by: Ján Tomko --- tests/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/meson.build b/tests/meson.build index 8958e68a69..c26c2719ac 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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