[libvirt PATCH 2/3] tests: Don't build virgdbusmock on Windows

Andrea Bolognani abologna at redhat.com
Thu Mar 30 14:39:32 UTC 2023


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 at redhat.com>
---
 tests/meson.build | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 6be806f4ae..fa3d5380d4 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
 
-- 
2.39.2



More information about the libvir-list mailing list