Resolve Coverity CHECKED_RETURN

Coverity complained that checking the return of virDomainCreate()
was not consistent amongst the callers - so added the return check
to the objecteventtest.c and adjust the virt-login-shell to compare
< 0 rather than just non zero for the failure condition.
This commit is contained in:
John Ferlan
2014-09-15 10:44:27 -04:00
parent 0268a35db4
commit 07334ccbac
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -359,7 +359,8 @@ testDomainStartStopEvent(const void *data)
/* Test domain is started */
virDomainDestroy(dom);
virDomainCreate(dom);
if (virDomainCreate(dom) < 0)
goto cleanup;
if (virEventRunDefaultImpl() < 0)
goto cleanup;