From patchwork Mon Sep 13 12:54:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 509733 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp548194jao; Mon, 13 Sep 2021 06:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyaXTpGRYWVZCA5GpZLYmFS+J7YJ7XxVF4snOwz+21rgDJNptyfiZx6YC7omio4TPzIFPn X-Received: by 2002:a6b:5a04:: with SMTP id o4mr9187402iob.44.1631539206134; Mon, 13 Sep 2021 06:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631539206; cv=none; d=google.com; s=arc-20160816; b=uERAqkufE84vI2qibPuwkzs6dIOfcg8+gRdK6nTThcMKnWLK3tOUkrQIJuKgt6i8Du wzOp1FmrVAQ9m0JSdSnBDQ9q/X9Gyy0FSigBitfV5wiL8puL2Miz9sqz1wjpiMcy4KzH lqVILUnOoqyHvrh74b7jE/Lt7X8BbeKzIxrChAB8Mf6SM1Q45111tCmUwjFwICVhzyoH gf1hSYnHLvOmqM0Ad0+f6ZfHDphr2xO6oQCT1iITO6rTGjxnxPwTITqli623Gp8yV34Z Mc8NQRL26pyWJ1O90RwhCCoAO8ys0rX9yrpKTY9gqBwb6YUB6HbRH4p1bDj61zdJZO34 9U8w== 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 :dkim-signature; bh=kD5WzzT1n7NZ3AfeyMDfoKjpYYWx9ipBolo299APBhA=; b=FV/L/8RBr/mN+pyEGOKRjERnByrZUrwPhqNxC45FxI4XEKO/5TyDZBfzfPTE3eW5G0 g9o1d5Gd5EiberELkbwrdLCWLEP78A6QGYmXE9pQkjQAubztJR2aiIJFQI+YDxqiXmou gB4PVSitlVh3/neeKR8vDSs/mWmwDf6wi7GKf3ZhP61v+4C9Y5lSq8+aLhNzOmF2fCmT kAcKVGJ9a0bMNYNIa30LkrLRCqoJ8tFkOd7XgsiXCu/Znci1x0fMPsP0gmPUzjoNh9lI G8DFjtrAyzc8rGiSguw38XWNLFsoJfNIlkXJcDp21YTC+mBK42JpRT+su5agv8nfyT+x 9jrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eqOdA1+3; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t10si6489823jaa.114.2021.09.13.06.20.05; Mon, 13 Sep 2021 06:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eqOdA1+3; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240416AbhIMNVO (ORCPT + 5 others); Mon, 13 Sep 2021 09:21:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:35052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240369AbhIMNU2 (ORCPT ); Mon, 13 Sep 2021 09:20:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E538D610A2; Mon, 13 Sep 2021 13:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631539129; bh=vQDQ+/qG/LA/nRQzQGstev6NVULTlIXk2hGztV2UteM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eqOdA1+3zhc6YwC/f8v6Amy9aEhhOFTMIr3xfErrZDRTS8XE88MrOp6VyZTkFgYii 6tclXKfWUoPr2hmelkztZIhSahfNbi8+8TkklOTHjnwONgn7J7RlLagFRjpJfCBZUf NBtM6gX8srWLGpJUAT9UdsmwamCj1vEnMp2M55SmjifVh16ub7RNGF7RbOwAwnBBSR EGo7BfHKlXMbyD8E+ALCxJ3ixLYzAYVhxdVTM2qRnkpzggTAl9IxlF369AxL9hcRRe LaheRlTiBHYuiRdVuXKDCj1pq/7YKOu5SrCggiLs39AevkCzDxqGQTNDAFAbPPsVTQ 1MgYx0LfS6aMg== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v1 1/8] selftests: arm64: Use a define for the number of SVE ptrace tests to be run Date: Mon, 13 Sep 2021 13:54:58 +0100 Message-Id: <20210913125505.52619-2-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210913125505.52619-1-broonie@kernel.org> References: <20210913125505.52619-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1009; h=from:subject; bh=vQDQ+/qG/LA/nRQzQGstev6NVULTlIXk2hGztV2UteM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhP0ojs9Vk+/o+GTD2AjKNaqbcwhx75hQGZxNVU3s1 cj6R8YCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYT9KIwAKCRAk1otyXVSH0Kt+B/ 40BTs6y8xK7oAExeJcW0SR1vhjKsEMhxINqcMwOExxzdr++OzfeElYqJLepwCTivrUUZR0o0qygzVJ XDRTh5a71tFYA83/iv/csS9P2/HxWrTopfAcD2HS9CJLXnaUxVkiXbN/Jq3+UDPkNe5eeCC2QRvzuG c9QGzQ7l6nxMI3Ino/rOUP7SD4zrZpVkVMU1ZtTVXcmkJXaXG5Zr7ieStWjiO+us+FBZUCzKvR+acr ieGUAEoArgL3Aw4LkjM32JemJ77rEwYIwqlbH41MSx2uPaIMZr2eH/u/sjuyik6aSBNvsN6xDcFPWN t03gx/sQIInHu5JdW/uxfZQrHkPi8o X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Partly in preparation for future refactoring move from hard coding the number of tests in main() to putting #define at the top of the source instead. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/sve-ptrace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.20.1 diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c index 612d3899614a..7f7ed1c96867 100644 --- a/tools/testing/selftests/arm64/fp/sve-ptrace.c +++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c @@ -19,6 +19,8 @@ #include "../../kselftest.h" +#define EXPECTED_TESTS 20 + /* and don't like each other, so: */ #ifndef NT_ARM_SVE #define NT_ARM_SVE 0x405 @@ -313,7 +315,7 @@ int main(void) pid_t child; ksft_print_header(); - ksft_set_plan(20); + ksft_set_plan(EXPECTED_TESTS); if (!(getauxval(AT_HWCAP) & HWCAP_SVE)) ksft_exit_skip("SVE not available\n");