]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Fix lstat() mock initialization on macOS
authorRoman Bolshakov <r.bolshakov@yadro.com>
Sun, 18 Oct 2020 15:30:56 +0000 (18:30 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Oct 2020 11:19:34 +0000 (13:19 +0200)
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@yadro.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virmockstathelpers.c

index dde9a61c6ffc539ba3f9fb9f1fec187636076d55..a251fc1267f76572f7809b7106003b741b1a12b2 100644 (file)
@@ -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