[libvirt] [PATCH] tests: stop static linking to libvirt code in tests

Michal Privoznik mprivozn at redhat.com
Wed Dec 4 11:11:22 UTC 2019


On 12/3/19 4:25 PM, Daniel P. Berrangé wrote:
> If we static link to libvirt_util.la then we can't override functions in
> this file by simply implementing them in the test code. Any tests should
> dynamic link to the main libvirt.la and ensure symbols are exported.
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>   src/libvirt_private.syms |  2 ++
>   tests/Makefile.am        | 11 +++--------
>   2 files changed, 5 insertions(+), 8 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list