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

Peter Krempa posted 1 patch 4 years, 9 months ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/b872422a9c5f1de0cad0e225ac81fd2ad82d2fbc.1560324059.git.pkrempa@redhat.com
tests/qemumonitorjsontest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[libvirt] [PATCH] tests: qemumonitorjson: Replace use of virReportError
Posted by Peter Krempa 4 years, 9 months ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list