]> xenbits.xensource.com Git - libvirt.git/commit
tests: Make references to global symbols indirect in test drivers
authorRoman Bolshakov <r.bolshakov@yadro.com>
Wed, 21 Aug 2019 16:13:23 +0000 (19:13 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 23 Aug 2019 10:26:26 +0000 (11:26 +0100)
commitf6d6086dbfecf76905856a09d441d5b4fdab25e1
tree32864d9f5de464596d3b79aa40bf2df25d31a03d
parent0ae6f5cea54d95c0d1dedf04a0a2accfe2529fb2
tests: Make references to global symbols indirect in test drivers

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@yadro.com>
tests/Makefile.am