mirror of https://gitee.com/openkylin/libvirt.git
tests: Fix lstat() mock initialization on macOS
There is a typo that prevents initialization of real_lstat.
Fixes: d6b17edd51
("tests: Lookup extended stat/lstat in mocks")
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7555a55470
commit
2c0b3db3c7
|
@ -153,7 +153,7 @@ static void virMockStatInit(void)
|
||||||
#endif
|
#endif
|
||||||
#ifdef MOCK_LSTAT
|
#ifdef MOCK_LSTAT
|
||||||
# ifdef __APPLE__
|
# ifdef __APPLE__
|
||||||
VIR_MOCK_REAL_INIT_ALIASED(stat, "lstat$INODE64");
|
VIR_MOCK_REAL_INIT_ALIASED(lstat, "lstat$INODE64");
|
||||||
# else
|
# else
|
||||||
VIR_MOCK_REAL_INIT(lstat);
|
VIR_MOCK_REAL_INIT(lstat);
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue