From: Peter Krempa Date: Wed, 18 Oct 2023 14:55:41 +0000 (+0200) Subject: qemublocktest: Fix logical bug in TEST_JSON_FORMAT macro X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=35815b1e751397bcf18d55c26045c1fb4a9396ee;p=libvirt.git 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 Reviewed-by: Ján Tomko --- diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c index a89dddf002..161fd84871 100644 --- a/tests/qemublocktest.c +++ b/tests/qemublocktest.c @@ -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) \