[libvirt] [PATCH 11/11] tests: Make references to global symbols indirect in test drivers

Daniel P. Berrangé berrange at redhat.com
Wed Aug 21 17:15:43 UTC 2019


On Wed, Aug 21, 2019 at 07:13:23PM +0300, Roman Bolshakov wrote:
> A library has to be built with -flat_namespace to get all references to
> global symbols indirected. That can also be achieved with two-level
> namespace interposition but we're not using explicit symbol
> interposition since it's more verbose and requires massive changes to
> the mocks.
> 
> This provides a way to interpose a mock for virQEMUCapsProbeHostCPU from
> qemucpumock and fixes domaincapstest on macOS.
> 
> Signed-off-by: Roman Bolshakov <r.bolshakov at yadro.com>
> ---
>  tests/Makefile.am | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list