From nobody Fri May 3 18:54:20 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=1604653527; cv=none; d=zohomail.com; s=zohoarc; b=edNPMg+gopHCMRKpXnEojPJ2ZLQqL0J05LmPFOWCIQTJlrvE1YUC8v1dy5AJ3mAsJFpnkJ7zT6LeBqSR4TY3sjuN6fafh3ZdBS3bga/HBAw5HleOqYfo7O4RpNLgMP4S3a3HeFzox2FQGLeHH081F59iiDjFSclr0kzOyAI1pbU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604653527; 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=u1E0kIFEp3CS5XFVrjawudIHhTQNVgyXCE1gbHbc0CA=; b=RL5DN911e9ShncoiRXnjsUuw59jDPTtg9VdGcfNu1Cr9EJE74VKpOGzy81Zq2zlAM7fI//j1TgNc0/K9aFX8o6rbVYpcnJU5bdLjvY1sr3yACsu0ArjqOnbdR3kTENcSDs+1Ori9B+vojC35gscld/GTtmyxjIUsO6MsNHrD64c= 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 1604653527869714.5661843461963; Fri, 6 Nov 2020 01:05:27 -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-315-JlpIow5VOIaIfaWTYd30xg-1; Fri, 06 Nov 2020 04:05:23 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2566A186DD21; Fri, 6 Nov 2020 09:05:15 +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 EB0FB6EF44; Fri, 6 Nov 2020 09:05:13 +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 C7CAA180B657; Fri, 6 Nov 2020 09:05:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0A6959Du019866 for ; Fri, 6 Nov 2020 04:05:09 -0500 Received: by smtp.corp.redhat.com (Postfix) id 18BFE5578E; Fri, 6 Nov 2020 09:05:09 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.193.109]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A9A475126 for ; Fri, 6 Nov 2020 09:05:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604653525; 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=u1E0kIFEp3CS5XFVrjawudIHhTQNVgyXCE1gbHbc0CA=; b=L3diiRxXaPdh6QHisjBg0Rjvw4nAFKRIXz3bONsKf1IgW4VZgxVtSMXnOeh+EUvJzWb/lt rLewDQAyG26vb/3feJjeIDnyAiw5luuTN50j+We9hdxHZzftzWtmCHm7y350q3tbYv29GZ +JVPAFy0wntoTeMFdbCzfar8FUVv8m8= X-MC-Unique: JlpIow5VOIaIfaWTYd30xg-1 From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] viridentitytest: Drop #if !WITH_SELINUX block Date: Fri, 6 Nov 2020 10:04:57 +0100 Message-Id: <09694950320de0ce15e582424476e0aee50c0d3a.1604653497.git.mprivozn@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.13 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 whole test is built only if SELinux secdriver is enabled and thus the !WITH_SELINUX can't be satisfied really. Also, the block references @ret variable which exists no more after v5.9.0-rc1~269. Signed-off-by: Michal Privoznik --- tests/viridentitytest.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/viridentitytest.c b/tests/viridentitytest.c index fd01eeaa80..7a7101ba2a 100644 --- a/tests/viridentitytest.c +++ b/tests/viridentitytest.c @@ -85,14 +85,6 @@ static int testIdentityGetSystem(const void *data) const char *val; int rc; =20 -#if !WITH_SELINUX - if (context) { - VIR_DEBUG("libvirt not compiled with SELinux, skipping this test"); - ret =3D EXIT_AM_SKIP; - return -1; - } -#endif - if (!(ident =3D virIdentityGetSystem())) { VIR_DEBUG("Unable to get system identity"); return -1; --=20 2.26.2