]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: avoid xend ABRT crash report
authorEric Blake <eblake@redhat.com>
Fri, 18 Nov 2011 21:21:54 +0000 (14:21 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 18 Nov 2011 22:00:18 +0000 (15:00 -0700)
commit531d7dddf14145e6db1ca94b1c5747382fada402
treeb42a4dcafc0630832a9eb8ae90e37a30e2d52987
parentf14b4cb5a0daa7096eb79cc57f66bfafad0cc56e
tests: avoid xend ABRT crash report

I installed the xen development packages on my non-Xen F16 machine
in order to compile-test xen code and ensure we don't break things
on that front, but being a non-xen machine, /usr/sbin/xend is
obviously not running.  Unfortunately, xen-4.1.2-1.fc16 has a bug
where merely trying to probe xend status on a non-xen kernel causes
xend to issue an ABRT crash report:

https://bugzilla.redhat.com/show_bug.cgi?id=728696

Even though libvirt (correctly) skips the test, the xend crash report
is unnecessary noise.  Fix this by first filtering out non-xen
kernels even before attempting to probe xend.  The test still runs
and passes on a RHEL 5 xen kernel after this patch.

* tests/reconnect.c (mymain): Skip xend probe on non-xen kernel.
* tests/statstest.c (mymain): Likewise.
tests/reconnect.c
tests/statstest.c