Re: [PATCH] domaincapstest: Call virFileWrapperClearPrefixes only on non-WIN32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2019-04-11 at 12:33 +0100, Daniel P. Berrangé wrote:
> On Wed, Apr 10, 2019 at 03:12:18PM +0200, Michal Privoznik wrote:
> > The virFileWrapperClearPrefixes() function is defined only when
> > building for non-WIN32.
> > 
> > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> > ---
> > 
> > Technically a build breaker fix, but I can't decide if ifdef is better
> > or removing the call is better.
> 
> I don't much care since it only affects one place, but personally
> I would have just make a no-op virFileWrapperClearPrefixes() impl
> that is built on Win32.

We ended up using a different approach after all (947ea8665e4e).

Stubbing out ClearPrefixes() on win32 would only paper over the
issue; on the other hand, I'm pretty sure simply stubbing out all
virFileWrapper APIs would not fly because we *need* to wrap file
access for the tests using the API to work properly.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux