]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemucaps2xmltest: fix test to successfully run without kvm support
authorPavel Hrdina <phrdina@redhat.com>
Wed, 25 Mar 2015 09:40:57 +0000 (10:40 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 25 Mar 2015 11:28:56 +0000 (12:28 +0100)
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 <phrdina@redhat.com>
tests/qemucaps2xmltest.c

index b3975b4afee360bb52fe93ba991e35526283cf7a..826f9eaa576a274cdd6af385971839e83f9d0be8 100644 (file)
@@ -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;