From nobody Fri Dec 19 16:07:15 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.37 as permitted sender) client-ip=209.132.183.37; envelope-from=libvir-list-bounces@redhat.com; helo=mx5-phx2.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.37 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) by mx.zohomail.com with SMTPS id 1486571402982138.45990542096524; Wed, 8 Feb 2017 08:30:02 -0800 (PST) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v18GQmjN023972; Wed, 8 Feb 2017 11:26:48 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v18GQfxw017880 for ; Wed, 8 Feb 2017 11:26:41 -0500 Received: from angien.brq.redhat.com (dhcp129-162.brq.redhat.com [10.34.129.162]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v18GQbSj027100; Wed, 8 Feb 2017 11:26:41 -0500 From: Peter Krempa To: libvir-list@redhat.com Date: Wed, 8 Feb 2017 17:27:03 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-loop: libvir-list@redhat.com Cc: Peter Krempa Subject: [libvirt] [PATCH 03/11] tests: drivermodule: Drop unused macro arguments 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Refactors of the test resulted into the second argument of the 'TEST' macro to be unused. Drop them. --- tests/virdrivermoduletest.c | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/tests/virdrivermoduletest.c b/tests/virdrivermoduletest.c index 870a07de6..09c1a614b 100644 --- a/tests/virdrivermoduletest.c +++ b/tests/virdrivermoduletest.c @@ -47,53 +47,50 @@ mymain(void) { int ret =3D 0; -#define TEST(name, dep1) = \ +#define TEST(name) = \ do { = \ if (virTestRun("Test driver " # name, testDriverModule, name) < 0)= \ ret =3D -1; = \ } while (0) #ifdef WITH_NETWORK -# define USE_NETWORK "network" - TEST("network", NULL); -#else -# define USE_NETWORK NULL + TEST("network"); #endif #ifdef WITH_INTERFACE - TEST("interface", NULL); + TEST("interface"); #endif #ifdef WITH_STORAGE - TEST("storage", NULL); + TEST("storage"); #endif #ifdef WITH_NODE_DEVICES - TEST("nodedev", NULL); + TEST("nodedev"); #endif #ifdef WITH_SECRETS - TEST("secret", NULL); + TEST("secret"); #endif #ifdef WITH_NWFILTER - TEST("nwfilter", NULL); + TEST("nwfilter"); #endif #ifdef WITH_XEN - TEST("xen", NULL); + TEST("xen"); #endif #ifdef WITH_LIBXL - TEST("libxl", NULL); + TEST("libxl"); #endif #ifdef WITH_QEMU - TEST("qemu", USE_NETWORK); + TEST("qemu"); #endif #ifdef WITH_LXC - TEST("lxc", USE_NETWORK); + TEST("lxc"); #endif #ifdef WITH_UML - TEST("uml", NULL); + TEST("uml"); #endif #ifdef WITH_VBOX - TEST("vbox", NULL); + TEST("vbox"); #endif #ifdef WITH_BHYVE - TEST("bhyve", NULL); + TEST("bhyve"); #endif return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list