diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2020-10-29 17:25:07 +0000 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2020-10-29 19:52:07 +0100 |
commit | e9cfbd36c50c3df4ef1db3b3c56c5f8706a710ee (patch) | |
tree | 5fe61098d7e7b795a0ca61d0712c27e1b7210756 /po/ml.po | |
parent | 0d669b2aa3c85d38980647e549bae576d27e6cec (diff) | |
download | libvirt-e9cfbd36c50c3df4ef1db3b3c56c5f8706a710ee.tar.gz |
tests: fix stat mocking with Fedora rawhidev6.9.0-rc2
GLibC has a really complicated way of dealing with the 'stat' function
historically, which means our mocks in turn have to look at four
different possible functions to replace, stat, stat64, __xstat,
__xstat64.
In Fedora 33 and earlier:
- libvirt.so links to __xstat64
- libc.so library exports stat, stat64, __xstat, __xstat64
- sys/stat.h header exposes stat and __xstat
In Fedora 34 rawhide:
- libvirt.so links to stat64
- libc.so library exports stat, stat64, __xstat, __xstat64
- sys/stat.h header exposes stat
Historically we only looked at the exported symbols from libc.so to
decide which to mock.
In F34 though we must not consider __xstat / __xstat64 though because
they only existance for binary compatibility. Newly built binaries
won't reference them.
Thus we must introduce a header file check into our logic for deciding
which symbol to mock. We must ignore the __xstat / __xstat64 symbols
if they don't appear in the sys/stat.h header, even if they appear
in libc.so
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'po/ml.po')
0 files changed, 0 insertions, 0 deletions