]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu*xml2*test: Invoke tests from a function
authorPeter Krempa <pkrempa@redhat.com>
Mon, 4 Dec 2023 16:00:54 +0000 (17:00 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 17 Jan 2024 16:30:30 +0000 (17:30 +0100)
commit3b04d481923014c4f1addb6fe6e5dd951ee76566
tree4ddd9006d43fdc1e3dbc84134912488b5dc05f98
parentaecd5085dbea499a706985665f1fc1ab48664f11
qemu*xml2*test: Invoke tests from a function

Refactor the code so that the test macros invoke a helper function with
no additional steps. This change prevents regressions in compilation
time when adding extra steps for the tests, which happen when the test
macro gets too complicated.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c
tests/qemuxmlactivetest.c
tests/testutilsqemu.c
tests/testutilsqemu.h