From nobody Wed May 1 12:36:51 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1615290911; cv=none; d=zohomail.com; s=zohoarc; b=LN/VoPzhJUkdskEmo325TxIUb4mqIQvl8wCVP2pMWO/riAo5GyZCfPFh0sBwCIWaYxr9COfBBOUGS/5V7Q4dCIv1CI4FwiH5jrMmlZbjCNE9nYVi9S4nQ/yW3voNQ5l9GgMdWoPFZ+6MmKNSeVIvrFeumYOF3ipy1H7IerY0Xmk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615290911; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=EOFMJGqCAlak3nbgEFAWxi28EoJ8IadbuJSd+yRU12k=; b=D7eu6+rZ6Ygow2eY/a2MrT7/huuRsV8y0Dpw3GZX8RUQUV4siVg6fu9Ijb4l2CtdSLvdEQZPYtxn/F+PyJ1/bmteNuRp9RZYq4/suWmet+FCSbdXUj4VlBcuKKIITHyCJunq5+WoPcnqYd47mxYY3Ao5cPmMbkeU8QNgUlPrMjU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1615290911671109.01436750476034; Tue, 9 Mar 2021 03:55:11 -0800 (PST) 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-269-QvRDPfr6PPyrd9Yvhekxpw-1; Tue, 09 Mar 2021 06:55:08 -0500 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 663711009E29; Tue, 9 Mar 2021 11:55:02 +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 351885C238; Tue, 9 Mar 2021 11:55:02 +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 E66051809C86; Tue, 9 Mar 2021 11:55:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 129Bt02G002567 for ; Tue, 9 Mar 2021 06:55:00 -0500 Received: by smtp.corp.redhat.com (Postfix) id 9450260C5F; Tue, 9 Mar 2021 11:55:00 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id E406160C04 for ; Tue, 9 Mar 2021 11:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615290910; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=EOFMJGqCAlak3nbgEFAWxi28EoJ8IadbuJSd+yRU12k=; b=M3YpR0oT+2GMtZR4qVvgQEI/Qeq1WTkZgV1dKaaMz8FlilarlpvjkY/Q3PUJky2trjV34p qOTcBGaBjirU6d+vY7a5VRpHyRjSDjKB6/HJPN0/Y3q47zMrDqKMEm8kPPYr11PBVoArX1 T5KwfZpzuadPEQwrnlhb+lRA6u1Uvw4= X-MC-Unique: QvRDPfr6PPyrd9Yvhekxpw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] domaincapstest: Return EXIT_SUCCESS / EXIT_FAILURE instead of -1 Date: Tue, 9 Mar 2021 12:54:55 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com 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.16 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-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" The value is used as return value for the process itself. Signed-off-by: Peter Krempa --- tests/domaincapstest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c index 7a082705c6..65d9f4c635 100644 --- a/tests/domaincapstest.c +++ b/tests/domaincapstest.c @@ -475,7 +475,7 @@ mymain(void) DO_TEST_BHYVE("fbuf", "/usr/sbin/bhyve", &bhyve_caps, VIR_DOMAIN_VIRT_= BHYVE); #endif /* WITH_BHYVE */ - return ret; + return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE; } #if WITH_QEMU --=20 2.29.2