mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
test: let qemuhotplugtest report details of init fails
If virHostdevManagerGetDefault in qemuhotplugtest fails it works for quite a while to later segfault when accessing mgr->activePCIHostdevs. Report the error details and break on a failed init to see the real issue right away. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
This commit is contained in:
parent
6c1dddaf97
commit
e4e62941f2
@ -634,6 +634,11 @@ mymain(void)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
driver.hostdevMgr = virHostdevManagerGetDefault();
|
||||
if (driver.hostdevMgr == NULL) {
|
||||
VIR_TEST_VERBOSE("Could not initialize HostdevManager - %s\n",
|
||||
virGetLastErrorMessage());
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
#define DO_TEST(file, ACTION, dev, fial, kep, ...) \
|
||||
|
Loading…
Reference in New Issue
Block a user