1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-11-01 00:24:26 +03:00

tests: qemu: remove unnecessary labels

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Ján Tomko
2020-07-28 23:17:02 +02:00
parent 51be622d76
commit d43f393134
7 changed files with 43 additions and 75 deletions

View File

@@ -64,29 +64,25 @@ qemuMigParamsTestXML2XML(const void *opaque)
g_autoptr(xmlXPathContext) ctxt = NULL;
g_autoptr(qemuMigrationParams) migParams = NULL;
g_autofree char *actualXML = NULL;
int ret = -1;
xmlFile = g_strdup_printf("%s/qemumigparamsdata/%s.xml", abs_srcdir,
data->name);
if (!(doc = virXMLParseFileCtxt(xmlFile, &ctxt)))
goto cleanup;
return -1;
if (qemuMigrationParamsParse(ctxt, &migParams) < 0)
goto cleanup;
return -1;
qemuMigParamsTestFormatXML(&buf, migParams);
if (!(actualXML = virBufferContentAndReset(&buf)))
goto cleanup;
return -1;
if (virTestCompareToFile(actualXML, xmlFile) < 0)
goto cleanup;
return -1;
ret = 0;
cleanup:
return ret;
return 0;
}