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.
char *inName;
char *outActiveName;
char *outInactiveName;
+
+ virQEMUCapsPtr qemuCaps;
};
static int
VIR_FREE(info->inName);
VIR_FREE(info->outActiveName);
VIR_FREE(info->outInactiveName);
+
+ virObjectUnref(info->qemuCaps);
}
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;