[PATCH 0/3] qemuxmlconftest: Error out if invalid FDs will be passed

Peter Krempa via Devel posted 3 patches 4 days, 23 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1779722619.git.pkrempa@redhat.com
tests/qemuxml2argvmock.c |  3 +++
tests/qemuxmlconftest.c  | 12 +++++++++-
tests/testutils.c        | 47 ++++++++++++++++++++++++++++++++++------
tests/testutils.h        |  8 ++++++-
tests/testutilsqemu.h    |  4 +++-
5 files changed, 64 insertions(+), 10 deletions(-)
[PATCH 0/3] qemuxmlconftest: Error out if invalid FDs will be passed
Posted by Peter Krempa via Devel 4 days, 23 hours ago
As promised in:

 [PATCH 00/30] qemuxmlconftest: Use real FDs in test cases

these patches make qemuxmlconftest error out if fake FDs are passed to
virCommandPassFD.

Peter Krempa (3):
  testutils: Turn 'virTestDummyFDContext' into a proper type
  virTestDummyFDContext: Add fields to track errors and
    'virTestDummyFDContextMarkError'
  qemuxmlconftest: Fail if test case tried to pass STDIO or invalid fds
    to 'virCommandPassFD'

 tests/qemuxml2argvmock.c |  3 +++
 tests/qemuxmlconftest.c  | 12 +++++++++-
 tests/testutils.c        | 47 ++++++++++++++++++++++++++++++++++------
 tests/testutils.h        |  8 ++++++-
 tests/testutilsqemu.h    |  4 +++-
 5 files changed, 64 insertions(+), 10 deletions(-)

-- 
2.54.0