forked from rpms/libvirt
1e0bcdcdf3
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/libvirt.git#7eef88add4af32ea98ecdd40e5aa8f9634868185
31 lines
992 B
Diff
31 lines
992 B
Diff
From 2c51432376f0ff3743633fd655756260b88313ff Mon Sep 17 00:00:00 2001
|
|
From: Roman Bolshakov <r.bolshakov@yadro.com>
|
|
Date: Sun, 18 Oct 2020 18:30:56 +0300
|
|
Subject: [PATCH 1/3] tests: Fix lstat() mock initialization on macOS
|
|
|
|
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 | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/virmockstathelpers.c b/tests/virmockstathelpers.c
|
|
index 1a58025a0a..90b9ceedb6 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
|
|
|