提交 8d48ce02 编写于 作者: C Cole Robinson

tests: qemuxml2xml: Wire up QEMUCaps usage

Future changes will make some of these tests dependent on specific
QEMUCaps flags, so wire up the basic handling. Flags will be added
in future patches.
上级 af3bd44f
......@@ -32,6 +32,8 @@ struct testInfo {
char *inName;
char *outActiveName;
char *outInactiveName;
virQEMUCapsPtr qemuCaps;
};
static int
......@@ -171,6 +173,8 @@ testInfoFree(struct testInfo *info)
VIR_FREE(info->inName);
VIR_FREE(info->outActiveName);
VIR_FREE(info->outInactiveName);
virObjectUnref(info->qemuCaps);
}
......@@ -180,6 +184,13 @@ testInfoSet(struct testInfo *info,
bool different,
int when)
{
if (!(info->qemuCaps = virQEMUCapsNew()))
goto error;
if (qemuTestCapsCacheInsert(driver.qemuCapsCache, name,
info->qemuCaps) < 0)
goto error;
if (virAsprintf(&info->inName, "%s/qemuxml2argvdata/qemuxml2argv-%s.xml",
abs_srcdir, name) < 0)
goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册