[PATCH 0/2] Mock another version of open()

Michal Privoznik posted 2 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1710408049.git.mprivozn@redhat.com
meson.build              | 13 +++++++++++++
tests/nssmock.c          | 26 +++++++++++++++++++++++++
tests/qemusecuritymock.c | 24 +++++++++++++++++++++++
tests/vircgroupmock.c    | 42 ++++++++++++++++++++++++++++++++++++++++
tests/virfilewrapper.c   | 18 +++++++++++++++++
tests/virmock.h          |  4 ++++
tests/virpcimock.c       | 17 ++++++----------
tests/virtestmock.c      | 20 +++++++++++++++++++
tests/virusbmock.c       | 42 ++++++++++++++++++++++++++++------------
9 files changed, 183 insertions(+), 23 deletions(-)
[PATCH 0/2] Mock another version of open()
Posted by Michal Privoznik 1 month, 2 weeks ago
Since rawhide has the most recent packages (glibc in this case) it is
usually the first where a problematic change shows. This time there's a
problem with glibc and the way it calls open() -> in some cases it calls
__open_2() instead. Since we are not mocking the latter our test cases
are not redirected to stay inside the repo. For instance, nsstest tries
to open "/var/lib/libvirt/dnsmasq//virbr1.status".

Green pipeline:

https://gitlab.com/MichalPrivoznik/libvirt/-/pipelines/1213064943

Michal Prívozník (2):
  virusbmock: Switch to VIR_MOCK_REAL_INIT()
  tests: mock __open_2()

 meson.build              | 13 +++++++++++++
 tests/nssmock.c          | 26 +++++++++++++++++++++++++
 tests/qemusecuritymock.c | 24 +++++++++++++++++++++++
 tests/vircgroupmock.c    | 42 ++++++++++++++++++++++++++++++++++++++++
 tests/virfilewrapper.c   | 18 +++++++++++++++++
 tests/virmock.h          |  4 ++++
 tests/virpcimock.c       | 17 ++++++----------
 tests/virtestmock.c      | 20 +++++++++++++++++++
 tests/virusbmock.c       | 42 ++++++++++++++++++++++++++++------------
 9 files changed, 183 insertions(+), 23 deletions(-)

-- 
2.43.2
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org