]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testsutilsqemu: check return value of virQEMUCapsNewCopy
authorJán Tomko <jtomko@redhat.com>
Fri, 20 Nov 2020 12:39:37 +0000 (13:39 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 1 Dec 2020 16:25:31 +0000 (17:25 +0100)
commitbac69aa1f91bd5cf361e221744637adc403b61d8
tree2b5fec4842e23774612e3666f881f24c8fade669
parent5c028697cd0541ad647b1bc3fef3c839d0406737
testsutilsqemu: check return value of virQEMUCapsNewCopy

While for virQEMUCapsNew this should not be needed
(the possible failures in VIR_CLASS_NEW are only hit
 on bad API usage which we don't do here),
virQEMUCapsNewCopy calls into many other functions,
some of which actually fail.

Check the return value of both.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/testutilsqemu.c