From nobody Sun Feb 8 03:11:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1629217593; cv=none; d=zohomail.com; s=zohoarc; b=NW7Oofc2x7qsO2hM4JZi8WLNfCT38suhY+ARK3SdvGcMp0wKiXhBpZZyi3iIB/YEOMrTCEzNKGgZtVMtWgRbvA3ZcavYL1EvA7IP4sgnmfJGKNKoW+c5VRyzNyXSp4rudFbHrR5Mx5/zKSolqvwVvA4sV0HD6GkkkUmScayUOKw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1629217593; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eXRb6+5d+XyJoaSx7SThGkozvW8ewR6eU1cdIlUN6wA=; b=miJVJHteC3K2VxBGz4U9Nu7pvYs7nRh+RlcYZDPP63b4FQ/O4k8opzgm+uFd+xjtFC+97xYSU+PxkV3fntNGOxboX0znOAAVGGyw6F+CJuLyceUq7fPwkBiJHQSyOYSj7YiWF0Q/gvheDB6TSknOqSFVMa+9gBvoLzSS4/gSdyQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1629217593973750.9272098485978; Tue, 17 Aug 2021 09:26:33 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-449--_F7a0jUOkSUTniET89ogg-1; Tue, 17 Aug 2021 12:26:31 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DC10596DD0A; Tue, 17 Aug 2021 16:26:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 92D7E78C09; Tue, 17 Aug 2021 16:26:25 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 5ABF44A706; Tue, 17 Aug 2021 16:26:25 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17HGQNgT020843 for ; Tue, 17 Aug 2021 12:26:23 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7192A6E0B9; Tue, 17 Aug 2021 16:26:23 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8CEA620DE for ; Tue, 17 Aug 2021 16:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629217593; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=eXRb6+5d+XyJoaSx7SThGkozvW8ewR6eU1cdIlUN6wA=; b=a6g4Qzbp2J1ltTqcwRfGjoqGc97IKNpFp6+TXRCTdAEJX8OaBAy8fAVknRhuzMXxBPO7is H5cXicq/fOeZP/MjH1EHYenD7LXFfde8PlyiohvrZFFlWR2VW2L7d8SmyWP7IyqW5nOUgG FPzTvqDVoSHEwzisxpgp3RPt9DtFpus= X-MC-Unique: -_F7a0jUOkSUTniET89ogg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 18/23] testQemuInfoSetArgs: Remove hack for double QEMU_CAPS_LAST in caps list Date: Tue, 17 Aug 2021 18:25:19 +0200 Message-Id: <1dc1cf4a107e61baa7ea7a8e6cfd741fa3b9eff8.1629217367.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1629217594467100003 Content-Type: text/plain; charset="utf-8" The callers don't use it any more. Remove it to avoid fragility of the test suite. Signed-off-by: Peter Krempa --- 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 =3D 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 =3D va_arg(argptr, int)) !=3D QEMU_CAPS_LAST) { - argname =3D flag; - continue; - } - break; case ARG_GIC: --=20 2.31.1