Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp317729pxx; Mon, 26 Oct 2020 09:14:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqYRLolLwSx5j6WWUfEMxkk9nWlhIhfUK9OsdoV7bw/1sZUbo/3/LhXMRPcCb1fXm2cYw6 X-Received: by 2002:a50:f319:: with SMTP id p25mr3699181edm.252.1603728844997; Mon, 26 Oct 2020 09:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603728844; cv=none; d=google.com; s=arc-20160816; b=wbgCe1hIMaymjt/tpr6++1mVkwFkAKTJM+PHL6S1LB8QC2ACFu9jsV3W5r6rP/SB3u cUgYRf2Lil2vTAuUYVs6tZtay878WVfIlTBRyEc3mB7T8nISw408Z6BaAtTy36yujh4p LlNbbu9dmSqA026SSsmnKLkXKiaOKVx7hjopMOsuWtlIjQJVgHri6f06NdvNK0z9IWeL YNxLYHIKoqBad38t8cJ1w1bY04eQUoHx92NrnlbacXS5w6L+Q7qrXJd8AysbCJvwfCee Ne2NrxLBSxxWCh71/cFynQQ/wGwcA9cDHM6D6o4kypRFBHF3j6Snoa+HIXuYwxeay50E y9Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SLeW43OuIBhuL053PYRnRqSobaUdqIvt3zF5nzd0k/c=; b=Llm968+NC3V15+Sruzc291VOhX/Eye05TPuECcTZry/RlJmH06zflg0ba5ZBaKXTOm ZD+KcMSSohENwFDr16crxyTJtzeztIzg/aBswD/TO3PzsCizEaHOTjkLj4VVIIZCPLJT DCEUbR2SXmAoT25UDibrbfDW3iOeBKJF3tbLq7YRd+9CI+9onXAx8zcq9ypAEaC8Y12W FSVh2ia93f3vGTke+iHFbb8rEhtNvYzm94GahOLoEpU4Rn+/8ijoiWqG3IvPSP+lNmg6 3CsB0VQhCg4YZNV/9oNenklezmu4XD+KMTr78G1rF07IYxjvCabijY2PH7lM5g0j3n0t WvVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m8si7375453eji.741.2020.10.26.09.13.40; Mon, 26 Oct 2020 09:14:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1774793AbgJZMNQ (ORCPT + 99 others); Mon, 26 Oct 2020 08:13:16 -0400 Received: from foss.arm.com ([217.140.110.172]:37128 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1774777AbgJZMNJ (ORCPT ); Mon, 26 Oct 2020 08:13:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E17914BF; Mon, 26 Oct 2020 05:13:09 -0700 (PDT) Received: from e119884-lin.cambridge.arm.com (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DDEF93F719; Mon, 26 Oct 2020 05:13:07 -0700 (PDT) From: Vincenzo Frascino To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Vincenzo Frascino , Shuah Khan , Catalin Marinas , Will Deacon , Gabor Kertesz , Amit Daniel Kachhap Subject: [PATCH 2/6] kselftest/arm64: Fix check_tags_inclusion test Date: Mon, 26 Oct 2020 12:12:44 +0000 Message-Id: <20201026121248.2340-3-vincenzo.frascino@arm.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201026121248.2340-1-vincenzo.frascino@arm.com> References: <20201026121248.2340-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The check_tags_inclusion test reports the error below because the test plan is not declared correctly: # Planned tests != run tests (0 != 4) Fix the test adding the correct test plan declaration. Fixes: f3b2a26ca78d ("kselftest/arm64: Verify mte tag inclusion via prctl") Cc: Shuah Khan Cc: Catalin Marinas Cc: Will Deacon Cc: Gabor Kertesz Cc: Amit Daniel Kachhap Signed-off-by: Vincenzo Frascino --- tools/testing/selftests/arm64/mte/check_tags_inclusion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/arm64/mte/check_tags_inclusion.c b/tools/testing/selftests/arm64/mte/check_tags_inclusion.c index 94d245a0ed56..deaef1f61076 100644 --- a/tools/testing/selftests/arm64/mte/check_tags_inclusion.c +++ b/tools/testing/selftests/arm64/mte/check_tags_inclusion.c @@ -170,6 +170,9 @@ int main(int argc, char *argv[]) /* Register SIGSEGV handler */ mte_register_signal(SIGSEGV, mte_default_handler); + /* Set test plan */ + ksft_set_plan(4); + evaluate_test(check_single_included_tags(USE_MMAP, MTE_SYNC_ERR), "Check an included tag value with sync mode\n"); evaluate_test(check_multiple_included_tags(USE_MMAP, MTE_SYNC_ERR), -- 2.28.0