[libvirt] [PATCH] tests: qemumonitorjson: Replace use of virReportError

Peter Krempa pkrempa at redhat.com
Wed Jun 12 07:21:22 UTC 2019


Use VIR_TEST_VERBOSE instead. This fixes the following syntax check
problem:

tests/qemumonitorjsontest.c:1409:        virReportError(VIR_ERR_INTERNAL_ERROR, "arr should have been cleared");

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---

Pushed under the build-breaker rule.

 tests/qemumonitorjsontest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c
index 68b115fa89..e087d1c256 100644
--- a/tests/qemumonitorjsontest.c
+++ b/tests/qemumonitorjsontest.c
@@ -1406,7 +1406,7 @@ testQemuMonitorJSONqemuMonitorJSONMergeBitmaps(const void *opaque)
         return -1;

     if (arr) {
-        virReportError(VIR_ERR_INTERNAL_ERROR, "arr should have been cleared");
+        VIR_TEST_VERBOSE("arr should have been cleared");
         return -1;
     }

-- 
2.21.0




More information about the libvir-list mailing list