提交 6433783b 编写于 作者: C Cole Robinson

tests: qemuxml2argv: add testInfoSetArgs

For now it just fills in the qemuCaps list. We will expand it
in future patches
Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
Signed-off-by: NCole Robinson <crobinso@redhat.com>
上级 05be8d8b
......@@ -624,6 +624,19 @@ testCompareXMLToArgv(const void *data)
return ret;
}
static int
testInfoSetArgs(struct testInfo *info, ...)
{
va_list argptr;
int ret = 0;
va_start(argptr, info);
virQEMUCapsSetVAList(info->qemuCaps, argptr);
va_end(argptr);
return ret;
}
# define FAKEROOTDIRTEMPLATE abs_builddir "/fakerootdir-XXXXXX"
static int
......@@ -809,7 +822,8 @@ mymain(void)
}; \
if (testInitQEMUCaps(&info, gic) < 0) \
return EXIT_FAILURE; \
virQEMUCapsSetList(info.qemuCaps, __VA_ARGS__, QEMU_CAPS_LAST); \
if (testInfoSetArgs(&info, __VA_ARGS__, QEMU_CAPS_LAST) < 0) \
return EXIT_FAILURE; \
if (virTestRun("QEMU XML-2-ARGV " name, \
testCompareXMLToArgv, &info) < 0) \
ret = -1; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册