From nobody Sun Feb 8 06:56:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.61 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=1571925485; cv=none; d=zoho.com; s=zohoarc; b=GCxGlXQxn5MnKx8gQtAlR/Fnx2yzdkyAcek9dUVFAqG1f5GxwM9JpdNEPzV84hrK5k15PSR0fZQRP1mVHW8JQ50xknaQnZh1f6CgUQX0M11W766lcPGEQFgjSDKXFBQbhUYy1sEsg/N7t7cpDRN70pVTUVLs6X3XDx2UnwkbRmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571925485; 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=4rGKeXDcjRY85+qMie0IncVil8h8qwvCLtnRvhHdas0=; b=ljUDNoob3KOeGUs9GIu+wBN4vTl2MOuIOL6URaKoZU1rmfNDEhiHwmbJtsev1twGPd1UjP7mmsYhi3Jp2wh1IxQS5Vdy8PR6EWdRIvuVAM7QQM87t5eWUCYPccRLUZGols6OIgrQ9JoN4FQy1gfvleJLbmfF1jOgnw/5wKEzTlI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1571925485773676.6329256529227; Thu, 24 Oct 2019 06:58:05 -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-166-s4uz5CxNPjq6MbqW7VHzwg-1; Thu, 24 Oct 2019 09:57:10 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5C261800D5A; Thu, 24 Oct 2019 13:57:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 36C805DD7A; Thu, 24 Oct 2019 13:57:04 +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 E1AAB180BAA2; Thu, 24 Oct 2019 13:57:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9ODv2dK026383 for ; Thu, 24 Oct 2019 09:57:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id E171110027A9; Thu, 24 Oct 2019 13:57:02 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6AB8C1001B33 for ; Thu, 24 Oct 2019 13:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571925484; 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=4rGKeXDcjRY85+qMie0IncVil8h8qwvCLtnRvhHdas0=; b=dEUB6Gboo1odGKBp8M+gNHYBqIYUsxszA8Eeq0zP0F8SH0z/OTEMI5l7iTcQG1A3AAkl6M RAhtlOCT1ndNXeDKH3LxCDQWKdHVMYXcKqVq4myD+CEhR0cmsKBhFwX9DyoIb339l3atDy xogSblUGVGL08xhPCc/4FBQeK3UKb4U= From: Peter Krempa To: libvir-list@redhat.com Date: Thu, 24 Oct 2019 15:56:27 +0200 Message-Id: <588b8e2ff4e271cd16f6ed01d39a89152e8bf9f7.1571925291.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 09/19] tests: virbuffer: Remove unused test data struct 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.14 X-MC-Unique: s4uz5CxNPjq6MbqW7VHzwg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The DO_TEST macro initializes 'struct testInfo' but it's not used by any of the tests. Remove it. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- tests/virbuftest.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/tests/virbuftest.c b/tests/virbuftest.c index 21b6295bb3..064b3e96b4 100644 --- a/tests/virbuftest.c +++ b/tests/virbuftest.c @@ -9,10 +9,6 @@ #define VIR_FROM_THIS VIR_FROM_NONE -struct testInfo { - int doEscape; -}; - static int testBufAutoIndent(const void *data G_GNUC_UNUSED) { virBuffer bufinit =3D VIR_BUFFER_INITIALIZER; @@ -404,18 +400,17 @@ mymain(void) int ret =3D 0; -#define DO_TEST(msg, cb, data) \ +#define DO_TEST(msg, cb) \ do { \ - struct testInfo info =3D { data }; \ - if (virTestRun("Buf: " msg, cb, &info) < 0) \ + if (virTestRun("Buf: " msg, cb, NULL) < 0) \ ret =3D -1; \ } while (0) - DO_TEST("Auto-indentation", testBufAutoIndent, 0); - DO_TEST("Trim", testBufTrim, 0); - DO_TEST("AddBuffer", testBufAddBuffer, 0); - DO_TEST("set indent", testBufSetIndent, 0); - DO_TEST("autoclean", testBufferAutoclean, 0); + DO_TEST("Auto-indentation", testBufAutoIndent); + DO_TEST("Trim", testBufTrim); + DO_TEST("AddBuffer", testBufAddBuffer); + DO_TEST("set indent", testBufSetIndent); + DO_TEST("autoclean", testBufferAutoclean); #define DO_TEST_ADD_STR(DATA, EXPECT) \ do { \ --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list