[PATCH 0/2] fix segfaults on qemuhotplugtest

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

 



After debugging for a while and eventually finding the root cause we
discussed this on IRC today:

<cpaelzer> danpb: BTW the test crash in 6.0 that I'm tracing (asked yesterday)
           is virHostdevManagerInitialize failing
<cpaelzer> the test goes on with mgr set to 0x0 and that is the segfault
           later on
<cpaelzer> virSetError was helpful as "Could not initialize HostdevManager
           operation failed: Failed to create state dir
           '/sbuild-nonexistent/.cache/libvirt/hostdevmgr'" sounds like a
           very testbed-specific issue that I might be able to solve when
           invoking the tests
<danpb> hmm, seems like we're missing a mock for  mkdir()
<danpb> i guess we should mock  virFileMakePath in this case

This series got v6.0.0 building in Ubuntu, so I thought it is worth to
submit it for review.

Christian Ehrhardt (2):
  test: let qemuhotplugtest report details of init fails
  test: qemuhotplugtest mock virFileMakePath

 tests/qemuhotplugmock.c | 18 ++++++++++++++++++
 tests/qemuhotplugtest.c |  5 +++++
 2 files changed, 23 insertions(+)

-- 
2.25.0


--
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