]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Re-introduce stat/lstat mocks on macOS
authorRoman Bolshakov <r.bolshakov@yadro.com>
Sun, 18 Oct 2020 15:30:57 +0000 (18:30 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Oct 2020 11:19:42 +0000 (13:19 +0200)
commitad0b56b64c83b36110cac385824e0ce67fae734f
tree0085817b3978842b0fccd339624ff41fb338c055
parent2c0b3db3c7901f99eed8d95a652b176c9b04b45d
tests: Re-introduce stat/lstat mocks on macOS

Commit d6b17edd5163 ("tests: Lookup extended stat/lstat in mocks")
adds support for mocking of stat() and lstat() on macOS.

The change was broken because virmockstathelpers.c only follows glibc
logic and MOCK_STAT and MOCK_LSTAT are not getting defined on macOS.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virmockstathelpers.c