]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Avoid gnulib replacements in mocks
authorRoman Bolshakov <r.bolshakov@yadro.com>
Wed, 21 Aug 2019 16:13:22 +0000 (19:13 +0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 23 Aug 2019 10:26:26 +0000 (11:26 +0100)
commit0ae6f5cea54d95c0d1dedf04a0a2accfe2529fb2
tree21add8cd17a39c955dbd70d0ef6137c9d4ff5ccf
parentfefc4ff4cd144d04e7cb6dccdce709003dc6ea17
tests: Avoid gnulib replacements in mocks

gnulib headers change stat, lstat and open to replacement functions,
even for function definitions. This effectively disables standard
library overrides in virfilewrapper and virmockstathelpers since they
are never reached.

Rename the functions and provide a declartion that uses correct
assembler name for the mocks.

This fixes firmware lookup in domaincapstest on macOS.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
tests/virfilewrapper.c
tests/virmockstathelpers.c