]> xenbits.xensource.com Git - libvirt.git/commit
tests: refactor testSELinuxLoadDef
authorJán Tomko <jtomko@redhat.com>
Sat, 4 Sep 2021 19:10:17 +0000 (21:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 31 Jan 2022 19:37:48 +0000 (20:37 +0100)
commit5c706266cb5baab82f661c0b31fc15940b45d190
tree100dc83bf1ada24a36de60735fc592a5042d489a
parentc1f8dd2e9e362f6c891eee3dfbb79b96776f7ee6
tests: refactor testSELinuxLoadDef

Since its introduction in
commit 907a39e735d256b8428ed4c77009d1f713aea19b
    Add a test suite for validating SELinux labelling

this function did not return NULL on OOM.

Since we abort on OOM now, switch testSELinuxMungePath to void,
return NULL explicitly on XML parsing failure and remove
the (now pointless) cleanup label.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/securityselinuxlabeltest.c