[PATCH] tests: Compile virgdbusmock.c with GIO_COMPILATION enabled

Andrea Bolognani abologna at redhat.com
Tue Mar 28 10:58:18 UTC 2023


On Tue, Mar 28, 2023 at 12:27:12PM +0200, Michal Prívozník wrote:
> On 3/28/23 10:33, Andrea Bolognani wrote:
> > Unfortunately, I also don't really have a better alternative to
> > suggest, so I guess it is what it is :)
>
> Maybe don't build mocks on mingw? Do they even work, or better: can they?

It looks like virgdbusmock is used by

  networkxml2firewalltest
  virfirewalltest
  virsystemdtest
  virpolkittest

The first three are Linux-only; the last one is ELF-only, which
Windows isn't and I *think* even throwing MinGW into the mix doesn't
change that. In any case, enabling polkit support on Windows is
explicitly blocked at the Meson level, so that test will never be
built on that platform.

It looks like it might be feasible to sidestep the issue entirely by
simply not builing this specific mock on Windows after all.

-- 
Andrea Bolognani / Red Hat / Virtualization



More information about the libvir-list mailing list