mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00: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'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||
<domain type='qemu'>
|
||||
</domain>
|
||||
<domain type='qemu'/>
|
||||
<domain type='kvm'>
|
||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||
</domain>
|
||||
|
@ -12,8 +12,7 @@
|
||||
<arch name='i686'>
|
||||
<wordsize>32</wordsize>
|
||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||
<domain type='qemu'>
|
||||
</domain>
|
||||
<domain type='qemu'/>
|
||||
<domain type='kvm'>
|
||||
<emulator>/usr/bin/qemu-system-i386</emulator>
|
||||
</domain>
|
||||
|
@ -31,7 +31,7 @@
|
||||
static int
|
||||
testCompareXMLToXML(const char *inxmldata, const char *outxmldata)
|
||||
{
|
||||
int ret = 1;
|
||||
int ret = -1;
|
||||
|
||||
if (STRNEQ(outxmldata, inxmldata)) {
|
||||
virtTestDifference(stderr, outxmldata, inxmldata);
|
||||
@ -143,7 +143,7 @@ testQemuCapsXML(const void *opaque)
|
||||
char *capsXml = NULL;
|
||||
virCapsPtr capsProvided = NULL;
|
||||
|
||||
if (virAsprintf(&xmlFile, "%s/qemucaps2xmldata/%s.xml",
|
||||
if (virAsprintf(&xmlFile, "%s/qemucaps2xmldata/%s.xml",
|
||||
abs_srcdir, data->base) < 0)
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user