mirror of https://gitee.com/openkylin/libvirt.git
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);
|
||||
|
|
Loading…
Reference in New Issue