[PATCH 1/3] tests: Fix lstat() mock initialization on macOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is a typo that prevents initialization of real_lstat.

Fixes: d6b17edd5163 ("tests: Lookup extended stat/lstat in mocks")
Signed-off-by: Roman Bolshakov <r.bolshakov@xxxxxxxxx>
---
 tests/virmockstathelpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/virmockstathelpers.c b/tests/virmockstathelpers.c
index dde9a61c6f..a251fc1267 100644
--- a/tests/virmockstathelpers.c
+++ b/tests/virmockstathelpers.c
@@ -153,7 +153,7 @@ static void virMockStatInit(void)
 #endif
 #ifdef MOCK_LSTAT
 # ifdef __APPLE__
-    VIR_MOCK_REAL_INIT_ALIASED(stat, "lstat$INODE64");
+    VIR_MOCK_REAL_INIT_ALIASED(lstat, "lstat$INODE64");
 # else
     VIR_MOCK_REAL_INIT(lstat);
 # endif
-- 
2.28.0





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux