]> xenbits.xensource.com Git - libvirt.git/commit
qemublocktest: xml->json: Refactor cleanup in test case functions
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 Mar 2020 10:24:39 +0000 (11:24 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 24 Mar 2020 13:17:47 +0000 (14:17 +0100)
commit4a9f355535f6af92731cd6e8afaf6cfde2751bf1
treed5837602e2228732a12bbe584520bc10f91ebb7e
parentfac9a8b4c45bffbda28c20c99c84542a5e16cba5
qemublocktest: xml->json: Refactor cleanup in test case functions

Use automatic variable clearing and remove the cleanup sections of
testQemuDiskXMLToProps, testQemuDiskXMLToPropsValidateSchema and
testQemuDiskXMLToPropsValidateFile.

testQemuDiskXMLToPropsValidateFileSrcOnly already uses new helpers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemublocktest.c