From: Pavel Hrdina Date: Wed, 25 Mar 2015 09:40:57 +0000 (+0100) Subject: qemucaps2xmltest: fix test to successfully run without kvm support X-Git-Tag: v1.2.14-rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49bf09d16cb7050795f6963a2746d686a2fbaece;p=thirdparty%2Flibvirt.git qemucaps2xmltest: fix test to successfully run without kvm support Function virQEMUCapsInitGuestFromBinary detect kvm support by testing whether /dev/kvm exists or whether we pass path to kvmbin. Provide the path we are testing via kvmbin for testing purpose instead of detecting presence of /dev/kvm to successfully run the tests on all hosts. Signed-off-by: Pavel Hrdina --- diff --git a/tests/qemucaps2xmltest.c b/tests/qemucaps2xmltest.c index b3975b4afe..826f9eaa57 100644 --- a/tests/qemucaps2xmltest.c +++ b/tests/qemucaps2xmltest.c @@ -118,8 +118,8 @@ testGetCaps(char *capsData, const testQemuData *data) if (virQEMUCapsInitGuestFromBinary(caps, "/usr/bin/qemu-system-i386", qemuCaps, - NULL, - NULL, + "/usr/bin/qemu-system-i386", + qemuCaps, data->guestarch) < 0) { fprintf(stderr, "failed to create the capabilities from qemu"); goto error;