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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user