]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: let qemuhotplugtest report details of init fails
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 16 Jan 2020 08:13:28 +0000 (09:13 +0100)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 22 Jan 2020 08:51:52 +0000 (10:51 +0200)
commite4e62941f2b5da573a49a8eb66761b75cdcb0baf
treefc61f7ab4268820a573fc9ef9c99cc8748680339
parent6c1dddaf97b4ef70e27961c9f79b15c79a863ac5
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>
tests/qemuhotplugtest.c