mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Use g_strdup_printf() instead of virAsprintf()
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
@@ -34,9 +34,8 @@ testCompareMemLock(const void *data)
|
||||
char *xml = NULL;
|
||||
int ret = -1;
|
||||
|
||||
if (virAsprintf(&xml, "%s/qemumemlockdata/qemumemlock-%s.xml",
|
||||
abs_srcdir, info->name) < 0)
|
||||
goto cleanup;
|
||||
xml = g_strdup_printf("%s/qemumemlockdata/qemumemlock-%s.xml", abs_srcdir,
|
||||
info->name);
|
||||
|
||||
if (!(def = virDomainDefParseFile(xml, driver.caps, driver.xmlopt, NULL,
|
||||
VIR_DOMAIN_DEF_PARSE_INACTIVE))) {
|
||||
|
||||
Reference in New Issue
Block a user