mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
qemublocktest: Fix logical bug in TEST_JSON_FORMAT macro
Condition handling failure of the first virTestRun was lacking the 'ret = -1' line thus the subsequent line was taken as it's body rendering the first invocation useless. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
eda1649752
commit
35815b1e75
@ -1015,6 +1015,7 @@ mymain(void)
|
|||||||
xmljsonxmldata.legacy = true; \
|
xmljsonxmldata.legacy = true; \
|
||||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||||
&xmljsonxmldata) < 0) \
|
&xmljsonxmldata) < 0) \
|
||||||
|
ret = -1; \
|
||||||
xmljsonxmldata.legacy = false; \
|
xmljsonxmldata.legacy = false; \
|
||||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||||
&xmljsonxmldata) < 0) \
|
&xmljsonxmldata) < 0) \
|
||||||
|
Loading…
Reference in New Issue
Block a user