]> xenbits.xensource.com Git - libvirt.git/commit
tests: mock __open_2()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2024 16:25:35 +0000 (17:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Mar 2024 14:17:48 +0000 (15:17 +0100)
commitb7e6513a018a897f6ac3f800eae14ff5be6f43f2
tree8c0717b5d5c43b823f0cd441ce4a67370cb75f58
parentce5efefecd36b5f7abae103591abe2aac06b781f
tests: mock __open_2()

As of commit [1] glibc may overwrite a call to open() with call
to __open_2() (if only two arguments are provided and the code is
compiled with clang). But since we are not mocking the latter our
test suite is broken as tests try to access paths outside of our
repo.

1: https://sourceware.org/git/?p=glibc.git;a=commit;h=86889e22db329abac618c6a41f86c84657a15324
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build
tests/nssmock.c
tests/qemusecuritymock.c
tests/vircgroupmock.c
tests/virfilewrapper.c
tests/virmock.h
tests/virpcimock.c
tests/virtestmock.c
tests/virusbmock.c