From: Peter Krempa Date: Sat, 16 Dec 2023 07:58:55 +0000 (+0100) Subject: qemuxml2argvtest: Remove unused separate parsing of arch X-Git-Tag: v10.1.0-rc1~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afe5c6f504f89dde8989e2430d1d606a2fd9ab77;p=thirdparty%2Flibvirt.git qemuxml2argvtest: Remove unused separate parsing of arch Prior to all tests being converted to "DO_TEST_CAPS*" invocation the fake-caps tests required knowing the architecture, which was pre-parsed in qemuxml2argvtest. This code was now removed, but the arch parser was forgotten. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 114943f22e..8b9cb1c01a 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -618,8 +618,6 @@ testCompareXMLToArgv(const void *data) qemuDomainObjPrivate *priv = NULL; g_autoptr(xmlDoc) xml = NULL; g_autoptr(xmlXPathContext) ctxt = NULL; - g_autofree char *archstr = NULL; - virArch arch = VIR_ARCH_NONE; g_autoptr(virIdentity) sysident = virIdentityGetSystem(); /* mark test case as used */ @@ -675,12 +673,6 @@ testCompareXMLToArgv(const void *data) "domain", &ctxt, NULL, false))) goto cleanup; - if ((archstr = virXPathString("string(./os/type[1]/@arch)", ctxt))) - arch = virArchFromString(archstr); - - if (arch == VIR_ARCH_NONE) - arch = virArchFromHost(); - virFileCacheClear(driver.qemuCapsCache); if (qemuTestCapsCacheInsert(driver.qemuCapsCache, info->qemuCaps) < 0)