mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemuxml2xmltest: Add 'ARG_END' from higher level macros
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ee8db0590a
commit
d779279e1c
@ -151,9 +151,7 @@ mymain(void)
|
||||
static struct testQemuInfo info = { \
|
||||
.name = _name, \
|
||||
}; \
|
||||
if (testQemuInfoSetArgs(&info, capscache, capslatest, \
|
||||
__VA_ARGS__, \
|
||||
ARG_END) < 0 || \
|
||||
if (testQemuInfoSetArgs(&info, capscache, capslatest, __VA_ARGS__) < 0 || \
|
||||
qemuTestCapsCacheInsert(driver.qemuCapsCache, info.qemuCaps) < 0) { \
|
||||
VIR_TEST_DEBUG("Failed to generate test data for '%s'", _name); \
|
||||
ret = -1; \
|
||||
@ -179,7 +177,8 @@ mymain(void)
|
||||
DO_TEST_INTERNAL(name, "." arch "-" ver, WHEN_BOTH, \
|
||||
ARG_CAPS_ARCH, arch, \
|
||||
ARG_CAPS_VER, ver, \
|
||||
__VA_ARGS__)
|
||||
__VA_ARGS__, \
|
||||
ARG_END)
|
||||
|
||||
#define DO_TEST_CAPS_ARCH_LATEST_FULL(name, arch, ...) \
|
||||
DO_TEST_CAPS_INTERNAL(name, arch, "latest", __VA_ARGS__)
|
||||
@ -200,7 +199,7 @@ mymain(void)
|
||||
DO_TEST_CAPS_ARCH_VER(name, "x86_64", ver)
|
||||
|
||||
#define DO_TEST_FULL(name, when, ...) \
|
||||
DO_TEST_INTERNAL(name, "", when, __VA_ARGS__)
|
||||
DO_TEST_INTERNAL(name, "", when, __VA_ARGS__, ARG_END)
|
||||
|
||||
#define DO_TEST(name, ...) \
|
||||
DO_TEST_FULL(name, WHEN_BOTH, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user