diff mbox

[libvirt] tests: eventtest: Fix coverity warning

Message ID a946c50ded37bccab831c75d2969ee82cc8c4ad5.1444229435.git.crobinso@redhat.com
State New
Headers show

Commit Message

Cole Robinson Oct. 7, 2015, 2:50 p.m. UTC
We can ignore the result of virtTestResult here, because failure is
unconditionally reported by the callers
---
 tests/eventtest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

John Ferlan Oct. 7, 2015, 3:02 p.m. UTC | #1
On 10/07/2015 10:50 AM, Cole Robinson wrote:
> We can ignore the result of virtTestResult here, because failure is
> unconditionally reported by the callers
> ---
>  tests/eventtest.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

ACK -

John

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

Patch

diff --git a/tests/eventtest.c b/tests/eventtest.c
index 625be86..c4be606 100644
--- a/tests/eventtest.c
+++ b/tests/eventtest.c
@@ -92,7 +92,7 @@  testEventReport(const char *name, bool failed, const char *msg, ...)
 
     data.failed = failed;
     data.msg = str;
-    virtTestRun(name, testEventResultCallback, &data);
+    ignore_value(virtTestRun(name, testEventResultCallback, &data));
 
     va_end(vargs);
     VIR_FREE(str);