mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemucaps2xmltest: fix the test to correspond to new domain formatting
Commit 2360fe5d
updated formating of <domain> element but forgot to
update qemucaps2xmldata xml files. In addition the test code was broken
too. Update the xml files and return -1 if testCompareXMLToXML fails
together with indentation fix.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
d75e23bbfb
commit
6d4269eca0
@ -12,8 +12,7 @@
|
|||||||
<arch name='i686'>
|
<arch name='i686'>
|
||||||
<wordsize>32</wordsize>
|
<wordsize>32</wordsize>
|
||||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
<domain type='qemu'>
|
<domain type='qemu'/>
|
||||||
</domain>
|
|
||||||
<domain type='kvm'>
|
<domain type='kvm'>
|
||||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
</domain>
|
</domain>
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
<arch name='i686'>
|
<arch name='i686'>
|
||||||
<wordsize>32</wordsize>
|
<wordsize>32</wordsize>
|
||||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
<domain type='qemu'>
|
<domain type='qemu'/>
|
||||||
</domain>
|
|
||||||
<domain type='kvm'>
|
<domain type='kvm'>
|
||||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||||
</domain>
|
</domain>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
static int
|
static int
|
||||||
testCompareXMLToXML(const char *inxmldata, const char *outxmldata)
|
testCompareXMLToXML(const char *inxmldata, const char *outxmldata)
|
||||||
{
|
{
|
||||||
int ret = 1;
|
int ret = -1;
|
||||||
|
|
||||||
if (STRNEQ(outxmldata, inxmldata)) {
|
if (STRNEQ(outxmldata, inxmldata)) {
|
||||||
virtTestDifference(stderr, outxmldata, inxmldata);
|
virtTestDifference(stderr, outxmldata, inxmldata);
|
||||||
@ -143,7 +143,7 @@ testQemuCapsXML(const void *opaque)
|
|||||||
char *capsXml = NULL;
|
char *capsXml = NULL;
|
||||||
virCapsPtr capsProvided = NULL;
|
virCapsPtr capsProvided = NULL;
|
||||||
|
|
||||||
if (virAsprintf(&xmlFile, "%s/qemucaps2xmldata/%s.xml",
|
if (virAsprintf(&xmlFile, "%s/qemucaps2xmldata/%s.xml",
|
||||||
abs_srcdir, data->base) < 0)
|
abs_srcdir, data->base) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user