]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
tests: eventtest: Fix coverity warning
authorCole Robinson <crobinso@redhat.com>
Wed, 7 Oct 2015 14:48:45 +0000 (10:48 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 7 Oct 2015 14:48:45 +0000 (10:48 -0400)
We can ignore the result of virtTestResult here, because failure is
unconditionally reported by the callers

tests/eventtest.c

index 625be868a4d21e5da1bb715f8a52d71f5396e474..c4be6060d8bfba83c76fcca280b7df5b98c5210e 100644 (file)
@@ -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);