From 6545a23277743762ec751bfe0c2301b1315f7885 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 17 Aug 2021 14:09:16 +0200 Subject: [PATCH] testQemuInfoSetArgs: Remove hack for double QEMU_CAPS_LAST in caps list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The callers don't use it any more. Remove it to avoid fragility of the test suite. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- tests/testutilsqemu.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index 32119e30c2..c86f7f2e39 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -705,23 +705,6 @@ testQemuInfoSetArgs(struct testQemuInfo *info, while ((flag = va_arg(argptr, int)) < QEMU_CAPS_LAST) virQEMUCapsSet(fakeCaps, flag); - - /* Some tests are run with NONE capabilities, which is just - * another name for QEMU_CAPS_LAST. If that is the case the - * arguments look like this : - * - * ARG_QEMU_CAPS, NONE, QEMU_CAPS_LAST, ARG_END - * - * Fetch one argument more and if it is QEMU_CAPS_LAST then - * break from the switch() to force getting next argument - * in the line. If it is not QEMU_CAPS_LAST then we've - * fetched real ARG_* and we must process it. - */ - if ((flag = va_arg(argptr, int)) != QEMU_CAPS_LAST) { - argname = flag; - continue; - } - break; case ARG_GIC: -- 2.47.2