]> xenbits.xensource.com Git - libvirt.git/commit
tests: Reset macOS dyld environment
authorAndrea Bolognani <abologna@redhat.com>
Wed, 17 Aug 2022 13:41:57 +0000 (15:41 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 22 Aug 2022 08:50:56 +0000 (10:50 +0200)
commit838f64515ec6902993c609a8fdf1f825a1993d5a
tree2124d7ebd0e0848864963dd8b8d2b5b5db6cd89c
parent9a1ef574ee2934acb0e3a317eb21cfea38f683c9
tests: Reset macOS dyld environment

This is needed to ensure the environment variables that we need
for the test program itself, specifically to load mock libraries,
do not interfere with any command that gets invoked by it, either
directly or indirectly. We already perform the same cleanup step
for LD_* variables.

This makes the test failures

  error : virCommandWait:2752 : internal error: Child process
    (/usr/libexec/qemu/vhost-user/test-vhost-user-gpu --print-capabilities)
    unexpected fatal signal 6: dyld[8896]: symbol not found in flat
    namespace '_virQEMUCapsGet'
  error : qemuVhostUserFillDomainGPU:394 : operation failed: Unable to
    find a satisfying vhost-user-gpu

that were showing up on macOS 12 go away.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvtest.c