From nobody Tue Feb 10 04:33:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1555412175; cv=none; d=zoho.com; s=zohoarc; b=e0ownLsmvUmOhvYBXLjVjpLFUeFjMbDolsCXWtass3i+0keNTTY4rvYtS3mYka0kJ/Dh3Uz0WHmQRp3hjRcHu717k4ybp2CA8yS6PKW9DnCPddRDDg/TY4cRda7nBLXakVL+d4bKoa7X6hu37mP6mtp72JeZWA6y1ZbMVXMdfdQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555412175; 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:ARC-Authentication-Results; bh=xaiFkBi/TLpTtLFMi+7fm9/jB29ewoQGoKDVi99/wYk=; b=NcyPZi2yNdkZ9Mi5DDOmEZ+aKnjrlWhI9VwwsQac9MhUm1N07UjGsOwJVNtUglIZCEFC63PdWwpTCIHnZm9NQ/gViDP72jaaz8Y34nxe19nFq748JL6EDW7tqSU2s9naDBa604XZd2iuRKbsd6g7bLK8BT3kIHwIwuAF9Vrpja4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555412175695347.616429884627; Tue, 16 Apr 2019 03:56:15 -0700 (PDT) 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 mx1.redhat.com (Postfix) with ESMTPS id AF38E4E92B; Tue, 16 Apr 2019 10:56:13 +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 855D360C4E; Tue, 16 Apr 2019 10:56:13 +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 46C103FAF4; Tue, 16 Apr 2019 10:56:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3GAu8he016076 for ; Tue, 16 Apr 2019 06:56:08 -0400 Received: by smtp.corp.redhat.com (Postfix) id 60F7D608C1; Tue, 16 Apr 2019 10:56:08 +0000 (UTC) Received: from kinshicho.redhat.com (ovpn-204-253.brq.redhat.com [10.40.204.253]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 71F4F608A4 for ; Tue, 16 Apr 2019 10:56:07 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Tue, 16 Apr 2019 12:55:57 +0200 Message-Id: <20190416105600.1534-2-abologna@redhat.com> In-Reply-To: <20190416105600.1534-1-abologna@redhat.com> References: <20190416105600.1534-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/4] tests: Make TEST_QEMU_CAPS_PATH public 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: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 16 Apr 2019 10:56:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" The value (with a slightly different name) is currently private to testutilsqemu, but since we use this path all over the place it makes sense to define it publicly and avoid repetition. Signed-off-by: Andrea Bolognani --- tests/testutilsqemu.c | 4 +--- tests/testutilsqemu.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c index 763f511bcf..0f295dc9a9 100644 --- a/tests/testutilsqemu.c +++ b/tests/testutilsqemu.c @@ -957,8 +957,6 @@ testQemuCapsIterate(const char *dirname, } =20 =20 -#define TEST_CAPS_PATH abs_srcdir "/qemucapabilitiesdata" - int testQemuInfoSetArgs(struct testQemuInfo *info, virHashTablePtr capslatest, ...) @@ -1059,7 +1057,7 @@ testQemuInfoSetArgs(struct testQemuInfo *info, goto cleanup; stripmachinealiases =3D true; } else if (virAsprintf(&capsfile, "%s/caps_%s.%s.xml", - TEST_CAPS_PATH, capsver, capsarch) < 0) { + TEST_QEMU_CAPS_PATH, capsver, capsarch) < 0= ) { goto cleanup; } =20 diff --git a/tests/testutilsqemu.h b/tests/testutilsqemu.h index 9ff34841ff..9ed633f8c0 100644 --- a/tests/testutilsqemu.h +++ b/tests/testutilsqemu.h @@ -25,6 +25,8 @@ # include "qemu/qemu_capabilities.h" # include "qemu/qemu_conf.h" =20 +# define TEST_QEMU_CAPS_PATH abs_srcdir "/qemucapabilitiesdata" + enum { GIC_NONE =3D 0, GIC_V2, --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list