[libvirt] [PATCH 03/19] test: Cleanup exit/failure paths of some storage pool APIs

Pavel Hrdina phrdina at redhat.com
Tue Jul 11 08:33:34 UTC 2017


On Tue, May 09, 2017 at 11:30:10AM -0400, John Ferlan wrote:
> Rework some of the test driver API's to remove the need to return failure
> when testStoragePoolObjFindByName returns NULL rather than going to cleanup.
> This removes the need for check for "if (obj)" and in some instances the
> need to for a cleanup label and a local ret variable.

The recommended wrapping of commit message body is 72 columns.

> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/test/test_driver.c | 49 ++++++++++++++++---------------------------------
>  1 file changed, 16 insertions(+), 33 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170711/87cb6d9b/attachment-0001.sig>


More information about the libvir-list mailing list