[PATCH 0/4] Fix various test portability problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This includes a slight tweak to the stat/lstat patch wrt logging and
fixes use of the dirent d_type field.

Daniel P. Berrangé (4):
  tests: fix mocking of stat() / lstat() functions
  qemu: don't rely on the non-portable d_type field in dirent
  security: avoid use of dirent d_type field
  cfg.mk: block use of d_type from dirent by default

 build-aux/mock-noinline.pl      |   3 +
 cfg.mk                          |  20 +-
 src/qemu/qemu_firmware.c        |  12 +-
 src/security/security_selinux.c |   6 +-
 tests/Makefile.am               |   1 +
 tests/qemusecuritymock.c        | 131 ++++---------
 tests/vircgroupmock.c           | 146 ++------------
 tests/virfilewrapper.c          |  85 ++-------
 tests/virmock.h                 |  11 --
 tests/virmockstathelpers.c      | 326 ++++++++++++++++++++++++++++++++
 tests/virpcimock.c              |  93 +--------
 tests/virtestmock.c             | 140 +-------------
 12 files changed, 440 insertions(+), 534 deletions(-)
 create mode 100644 tests/virmockstathelpers.c

-- 
2.20.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux