From: Peter Krempa Date: Tue, 17 Aug 2021 12:04:41 +0000 (+0200) Subject: qemuxml2argvtest: Fix broken invocation of "aarch64-tpm-wrong-model" X-Git-Tag: v7.7.0-rc1~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e817d1938ab6453539af16e8e41b986b9a1578a6;p=thirdparty%2Flibvirt.git qemuxml2argvtest: Fix broken invocation of "aarch64-tpm-wrong-model" The string "aarch64" is passed in place of capability flags. We were lucky that the pointer was always more than QEMU_CAPS_LAST. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 0aa213a68b..ddfa59a1de 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2568,7 +2568,7 @@ mymain(void) DO_TEST_CAPS_LATEST("tpm-emulator-tpm2-pstate"); DO_TEST_CAPS_LATEST_PPC64("tpm-emulator-spapr"); DO_TEST_CAPS_ARCH_LATEST("aarch64-tpm", "aarch64"); - DO_TEST_PARSE_ERROR("aarch64-tpm-wrong-model", "aarch64"); + DO_TEST_PARSE_ERROR("aarch64-tpm-wrong-model", NONE); DO_TEST_PARSE_ERROR("pci-domain-invalid", NONE); DO_TEST_PARSE_ERROR("pci-bus-invalid", NONE);