]> xenbits.xensource.com Git - libvirt.git/commit
tests: Improve macOS stat() mocking logic
authorAndrea Bolognani <abologna@redhat.com>
Wed, 3 Feb 2021 11:32:46 +0000 (12:32 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 4 Feb 2021 12:58:44 +0000 (13:58 +0100)
commit879edc697bfde5371628a83fb56446bb88a008c4
tree1db60b5ee8d2afea77cd6661482ea1e2a0cd5deb
parent7314546f734869c4d086c402491ff8d12af25335
tests: Improve macOS stat() mocking logic

We should not mock stat64() when building on Apple Silicon,
because the declaration is not present in the header file.
Detect this situation and handle it gracefully.

https://gitlab.com/libvirt/libvirt/-/issues/121

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virmockstathelpers.c