From nobody Wed Nov 27 02:33:42 2024 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=1560267886; cv=none; d=zoho.com; s=zohoarc; b=MJIPA6PxMZSaoV/Y7/ApaZAPCBs4ut3pTrmi7xoWh92o/EFvLMO5fsHFSKteheEH+q16KTM2OUcMGSRf246aXedS1MC/IAKilXsT4eqcTePgE+ni8tix0N/scneDaCizQLBG0eT0zhTXkFU5yvg5n+3pRM7R09IKIgTr+OaGjwg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1560267886; 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=QZESa1Z6KiQGT+p+yP+YAjL0pBAD2CVNqACK5XcXAY8=; b=HJDb40AEVSs7fLpHi6eyeoM+1cIvYid/vS92QVKnCHvRWv4YHOsS8eyvD2dKdF8J4E4iwUla95hOkGsNsoc2UrZ1gQsc3zlkDiMj3UEQaketrQXRbXojgpM1u5QEiwc444cm1S/sRHzNNq6zfiEhvUdH/1qah3RzRPxzcuGcoSA= 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 1560267886342535.6213933507174; Tue, 11 Jun 2019 08:44:46 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B1C48309266E; Tue, 11 Jun 2019 15:44:24 +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 8B9AC513EC; Tue, 11 Jun 2019 15:44:20 +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 55C7818363C1; Tue, 11 Jun 2019 15:44:16 +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 x5BFhLWR009487 for ; Tue, 11 Jun 2019 11:43:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0B81360A35; Tue, 11 Jun 2019 15:43:21 +0000 (UTC) Received: from angien.brq.redhat.com (unknown [10.43.2.229]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89CAA60C81 for ; Tue, 11 Jun 2019 15:43:20 +0000 (UTC) From: Peter Krempa To: libvir-list@redhat.com Date: Tue, 11 Jun 2019 17:43:14 +0200 Message-Id: <7d58bd1807e8c2a3ad60c5b5610330578cf1beac.1560267765.git.pkrempa@redhat.com> In-Reply-To: References: 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/3] tests: uri: Use VIR_TEST_DEBUG instead of VIR_DEBUG 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 11 Jun 2019 15:44:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" VIR_TEST_DEBUG can be easily made verbose in the tests. Signed-off-by: Peter Krempa --- tests/viruritest.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/tests/viruritest.c b/tests/viruritest.c index ba5db15011..336fffbf0f 100644 --- a/tests/viruritest.c +++ b/tests/viruritest.c @@ -56,61 +56,61 @@ static int testURIParse(const void *args) goto cleanup; if (STRNEQ(uri->scheme, data->scheme)) { - VIR_DEBUG("Expected scheme '%s', actual '%s'", - data->scheme, uri->scheme); + VIR_TEST_DEBUG("Expected scheme '%s', actual '%s'", + data->scheme, uri->scheme); goto cleanup; } if (STRNEQ(uri->server, data->server)) { - VIR_DEBUG("Expected server '%s', actual '%s'", - data->server, uri->server); + VIR_TEST_DEBUG("Expected server '%s', actual '%s'", + data->server, uri->server); goto cleanup; } if (uri->port !=3D data->port) { - VIR_DEBUG("Expected port '%d', actual '%d'", - data->port, uri->port); + VIR_TEST_DEBUG("Expected port '%d', actual '%d'", + data->port, uri->port); goto cleanup; } if (STRNEQ_NULLABLE(uri->path, data->path)) { - VIR_DEBUG("Expected path '%s', actual '%s'", - data->path, uri->path); + VIR_TEST_DEBUG("Expected path '%s', actual '%s'", + data->path, uri->path); goto cleanup; } if (STRNEQ_NULLABLE(uri->query, data->query)) { - VIR_DEBUG("Expected query '%s', actual '%s'", - data->query, uri->query); + VIR_TEST_DEBUG("Expected query '%s', actual '%s'", + data->query, uri->query); goto cleanup; } if (STRNEQ_NULLABLE(uri->fragment, data->fragment)) { - VIR_DEBUG("Expected fragment '%s', actual '%s'", - data->fragment, uri->fragment); + VIR_TEST_DEBUG("Expected fragment '%s', actual '%s'", + data->fragment, uri->fragment); goto cleanup; } for (i =3D 0; data->params && data->params[i].name && i < uri->paramsC= ount; i++) { if (STRNEQ_NULLABLE(data->params[i].name, uri->params[i].name)) { - VIR_DEBUG("Expected param name %zu '%s', actual '%s'", - i, data->params[i].name, uri->params[i].name); + VIR_TEST_DEBUG("Expected param name %zu '%s', actual '%s'", + i, data->params[i].name, uri->params[i].name); goto cleanup; } if (STRNEQ_NULLABLE(data->params[i].value, uri->params[i].value)) { - VIR_DEBUG("Expected param value %zu '%s', actual '%s'", - i, data->params[i].value, uri->params[i].value); + VIR_TEST_DEBUG("Expected param value %zu '%s', actual '%s'", + i, data->params[i].value, uri->params[i].value); goto cleanup; } } if (data->params && data->params[i].name) { - VIR_DEBUG("Missing parameter %zu %s=3D%s", - i, data->params[i].name, data->params[i].value); + VIR_TEST_DEBUG("Missing parameter %zu %s=3D%s", + i, data->params[i].name, data->params[i].value); goto cleanup; } if (i !=3D uri->paramsCount) { - VIR_DEBUG("Unexpected parameter %zu %s=3D%s", - i, uri->params[i].name, uri->params[i].value); + VIR_TEST_DEBUG("Unexpected parameter %zu %s=3D%s", + i, uri->params[i].name, uri->params[i].value); goto cleanup; } @@ -121,8 +121,8 @@ static int testURIParse(const void *args) goto cleanup; if (STRNEQ(uristr, data->uri_out)) { - VIR_DEBUG("URI did not roundtrip, expect '%s', actual '%s'", - data->uri_out, uristr); + VIR_TEST_DEBUG("URI did not roundtrip, expect '%s', actual '%s'", + data->uri_out, uristr); goto cleanup; } --=20 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list