Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp310903pxx; Mon, 26 Oct 2020 09:06:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwphvYaArrBzuKv4cjoYdNtHqjoSFvDz7vY9c1RBK+iOpJ1Uhq5F+gwITtn9ultDIyAo/F1 X-Received: by 2002:a17:906:3641:: with SMTP id r1mr17109203ejb.391.1603728360426; Mon, 26 Oct 2020 09:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603728360; cv=none; d=google.com; s=arc-20160816; b=BPUsofmfqpCTOXp4ydW0IfBOhA77X9WyxBbqEjlMck5jYr2GsOjEilPkMvJDE7K3rA SQIJLi24PdER9Et++bLJx8HnwQR5HixGk95GsyKIBFqEtJRnJ3DQ0R0f1lKsZTkQaeeg pUIBDfPU8Y4KiRDzNCBRLxsZfAfBN3ygXbYzDCVx98/W7hZb8t1Ub7iYXSUMd2RiHh6s FXiSx02a5tVG6q+zQGggi/0D+K/MRy77svHHOqbVPCI5qWfmHm6A1lWaAjppUgNjqoZu ljWIXfcAjkujz7otjloOFHPeo8auFtOWZm2KRT0ywCi6a3UNdS0QsSgOv6kkMiv8xAT0 WhGA== 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=L3lKZiCL+IQzG0Um35Pc8ie8qCzNCG0acMkrdLYp+5E=; b=Xon/SLIdpi19Q7S+k2qTZPBf6FEP26EeH8q7mkulgh75KpHCrI/3GgiBEcWTItZCwn 4EA08fY1A3FQ53a47t6CiRrYp5VKF2Hv6Jq6aYY1rUcoICZYcIyz4rHx5pIgzRbcc8wO f1PikBMIe1InLQCO/5L9KKIgAe6fvcA9wU/BzNnJDqPnzVdvekcNoIRaS/NSk8y0MyKv MGG80yCvmUArEH3ADU12ai3kJ92U+MYX1BNKaLcjZggvf+/TXRwbn1Zv+n00JH9UEh/x TPOWRWwg4m4fiUEsqCO4M5k0UI7LKp15J0JcOoGkxpjvk3Po45OpyCwAjnL+hs6Y3Sds 7maw== 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 a1si7166187ejt.206.2020.10.26.09.05.38; Mon, 26 Oct 2020 09:06:00 -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 S1774872AbgJZMOM (ORCPT + 99 others); Mon, 26 Oct 2020 08:14:12 -0400 Received: from foss.arm.com ([217.140.110.172]:37146 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1774784AbgJZMNM (ORCPT ); Mon, 26 Oct 2020 08:13:12 -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 0223D1480; Mon, 26 Oct 2020 05:13:12 -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 BDBE73F719; Mon, 26 Oct 2020 05:13:10 -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 4/6] kselftest/arm64: Fix check_mmap_options test Date: Mon, 26 Oct 2020 12:12:46 +0000 Message-Id: <20201026121248.2340-5-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_mmap_options test reports the error below because the test plan is not declared correctly: # Planned tests != run tests (0 != 22) Fix the test adding the correct test plan declaration. Fixes: 53ec81d23213 ("kselftest/arm64: Verify all different mmap MTE options") 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_mmap_options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/arm64/mte/check_mmap_options.c b/tools/testing/selftests/arm64/mte/check_mmap_options.c index 33b13b86199b..a04b12c21ac9 100644 --- a/tools/testing/selftests/arm64/mte/check_mmap_options.c +++ b/tools/testing/selftests/arm64/mte/check_mmap_options.c @@ -205,7 +205,11 @@ int main(int argc, char *argv[]) mte_register_signal(SIGBUS, mte_default_handler); mte_register_signal(SIGSEGV, mte_default_handler); + /* Set test plan */ + ksft_set_plan(22); + mte_enable_pstate_tco(); + evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_OFF), "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check off\n"); evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_OFF), -- 2.28.0