]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Preload mocks with DYLD_INSERT_LIBRARIES on macOS
authorRoman Bolshakov <r.bolshakov@yadro.com>
Wed, 21 Aug 2019 16:13:15 +0000 (19:13 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 23 Aug 2019 10:26:26 +0000 (11:26 +0100)
commit351492e304c5806dd67aaa3368cd03389f221481
treead77bcfca1abf57edc06e808031a1dce80830717
parentdbb5e20edec7d07092808fb99a485236a9399f58
tests: Preload mocks with DYLD_INSERT_LIBRARIES on macOS

LD_PRELOAD has no effect on macOS. Instead, dyld(1) provides a way for
symbol hooking via DYLD_INSERT_LIBRARIES. The variable should contain
colon-separated paths to the dylibs to be inserted.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
tests/testutils.h