[PATCH 11/22] qemublocktest: Fix logical bug in TEST_JSON_FORMAT macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 tests/qemublocktest.c | 1 +
 1 file changed, 1 insertion(+)

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) \
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux