]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: Cleanup exit/failure paths of some storage pool APIs
authorJohn Ferlan <jferlan@redhat.com>
Fri, 5 May 2017 21:31:36 +0000 (17:31 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 21 Jul 2017 18:51:47 +0000 (14:51 -0400)
commitb5e0fa41e2ee9e277adfdd3127840a626f7dd672
tree6c5d2516b3a472004ee21f52d156f1a6a1b533fc
parent036d9af303a6c337bd110bea88749ae0d2cd9c59
test: Cleanup exit/failure paths of some storage pool APIs

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.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/test/test_driver.c