mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user