]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xencapstest: Don't fail when Xen is installed
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 9 Nov 2010 22:38:12 +0000 (23:38 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 9 Nov 2010 23:06:49 +0000 (00:06 +0100)
commitc2e9e907429a5e95727e3bc119783dedf7d5ebbd
treef949f89e00b8334b4ce0e185ab4753bcae5bac3b
parentff4a31d969d6f86bd6baf467b89e179848cd4708
xencapstest: Don't fail when Xen is installed

xencapstest calls xenHypervisorMakeCapabilitiesInternal with conn == NULL
which calls xenDaemonNodeGetTopology with conn == NULL when a recent
enough Xen was detected (sys_interface_version >= SYS_IFACE_MIN_VERS_NUMA).
But xenDaemonNodeGetTopology insists in having conn != NULL and fails,
because it expects to be able to talk to an actual xend.

We cannot do that in a 'make check' test. Therefore, only call the xend
subdriver function when conn isn't NULL.

Reported by Andy Howell and Jim Fehlig.
src/xen/xen_hypervisor.c