From nobody Sun Feb 8 20:35:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1655876146; cv=none; d=zohomail.com; s=zohoarc; b=KxcLSr6eB7Or0diY/Hv0EsgvXQ9Ec8wELGPlRwNo95plHtMV+a3N7OiOVwY8ef8xFTQBol/uQxgJNcC5PSGIzxXfO2GAPX3sbos/U0E7pa+hF3vKgL1Z/SIwu23scjuTP0aHuLF/uHs7v/XRWU4XUoJcMrvyhA6boAnqwXP6ZZA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655876146; 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=YTX4XWRTiJHXWZXtYrkFcNF5Hq2ByCZsVeAEPl/R4GQ=; b=e+tAVRViEu2OUiyYm8qmwbKigUc/uQmLniCeAHBR5wPq+MK8CbVWDv6m1tg/+KMWYJ7ijbTpngTBIlB+PLyDOK2+WOYDrszal8FMQ+Z1UEpPo18MDBLBYILB825YiQ2LJvW+ueqJfbZVArSMj7kre9MsXHrVBWeCgcDibB0BWCA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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 [170.10.129.124]) by mx.zohomail.com with SMTPS id 1655876146469473.5006361724105; Tue, 21 Jun 2022 22:35:46 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-621-50COA6GsMCGYHjaZ7751LQ-1; Wed, 22 Jun 2022 01:35:42 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9721A18013A7; Wed, 22 Jun 2022 05:35:39 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F7DE40EC002; Wed, 22 Jun 2022 05:35:38 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 64AA6194704C; Wed, 22 Jun 2022 05:35:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A71E7194704C for ; Wed, 22 Jun 2022 05:35:37 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 72D5B1121315; Wed, 22 Jun 2022 05:35:37 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1AF531121314 for ; Wed, 22 Jun 2022 05:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655876145; 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=YTX4XWRTiJHXWZXtYrkFcNF5Hq2ByCZsVeAEPl/R4GQ=; b=P0CL0HREDoJHts2fhT+VYNjfJabIADHQemj8p2AbkwV145EctvagKW2y62rUqgJ6oJAONf EQFI7L7cZae3rn74Tedyhoy5jnKv8BrSxbmsA1+HjwCAs15M10siKr7tY3d2k2rtD6UDnf 9SdXbdzWiJrJMen3TAwmEyZ2IsaAvsA= X-MC-Unique: 50COA6GsMCGYHjaZ7751LQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 2/6] tests: remove pointless label in testURIParse Date: Wed, 22 Jun 2022 07:35:30 +0200 Message-Id: <011746f72bc1f5ec3b253f448c11a62b171f9ae7.1655876067.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1655876148063100005 Signed-off-by: J=C3=A1n Tomko --- tests/viruritest.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/viruritest.c b/tests/viruritest.c index 7eb7c9cb67..cd6ce57371 100644 --- a/tests/viruritest.c +++ b/tests/viruritest.c @@ -45,7 +45,6 @@ struct URIParseData { =20 static int testURIParse(const void *args) { - int ret =3D -1; g_autoptr(virURI) uri =3D NULL; const struct URIParseData *data =3D args; g_autofree char *uristr =3D NULL; @@ -53,7 +52,7 @@ static int testURIParse(const void *args) bool fail =3D false; =20 if (!(uri =3D virURIParse(data->uri))) - goto cleanup; + return -1; =20 if (STRNEQ(uri->scheme, data->scheme)) { VIR_TEST_DEBUG("Expected scheme '%s', actual '%s'", @@ -120,7 +119,7 @@ static int testURIParse(const void *args) uri->query =3D virURIFormatParams(uri); =20 if (!(uristr =3D virURIFormat(uri))) - goto cleanup; + return -1; =20 if (STRNEQ(uristr, data->uri_out)) { VIR_TEST_DEBUG("URI did not roundtrip, expect '%s', actual '%s'", @@ -129,11 +128,9 @@ static int testURIParse(const void *args) } =20 if (fail) - goto cleanup; + return -1; =20 - ret =3D 0; - cleanup: - return ret; + return 0; } =20 =20 --=20 2.34.1