mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35: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; \
|
||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||
&xmljsonxmldata) < 0) \
|
||||
ret = -1; \
|
||||
xmljsonxmldata.legacy = false; \
|
||||
if (virTestRun(virTestCounterNext(), testBackingXMLjsonXML, \
|
||||
&xmljsonxmldata) < 0) \
|
||||
|
Loading…
Reference in New Issue
Block a user