From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.4 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC516C4363A for ; Tue, 27 Oct 2020 10:26:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65AAD22264 for ; Tue, 27 Oct 2020 10:26:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898033AbgJ0KZq (ORCPT ); Tue, 27 Oct 2020 06:25:46 -0400 Received: from foss.arm.com ([217.140.110.172]:37574 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898032AbgJ0KZp (ORCPT ); Tue, 27 Oct 2020 06:25:45 -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 3FA5D30E; Tue, 27 Oct 2020 03:25:45 -0700 (PDT) Received: from [10.57.11.195] (unknown [10.57.11.195]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 35BF43F66E; Tue, 27 Oct 2020 03:25:41 -0700 (PDT) Subject: Re: [PATCH 1/6] kselftest/arm64: Fix check_buffer_fill test To: Vincenzo Frascino , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Shuah Khan , Catalin Marinas , Will Deacon , Gabor Kertesz References: <20201026121248.2340-1-vincenzo.frascino@arm.com> <20201026121248.2340-2-vincenzo.frascino@arm.com> From: Amit Kachhap Message-ID: Date: Tue, 27 Oct 2020 15:55:38 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20201026121248.2340-2-vincenzo.frascino@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 10/26/20 5:42 PM, Vincenzo Frascino wrote: > The check_buffer_fill test reports the error below because the test > plan is not declared correctly: > > # Planned tests != run tests (0 != 20) > > Fix the test adding the correct test plan declaration. This change is required and got missed earlier. Acked by: Amit Daniel Kachhap > > Fixes: e9b60476bea0 ("kselftest/arm64: Add utilities and a test to validate mte memory") > 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_buffer_fill.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/arm64/mte/check_buffer_fill.c b/tools/testing/selftests/arm64/mte/check_buffer_fill.c > index 242635d79035..c9fa141ebdcc 100644 > --- a/tools/testing/selftests/arm64/mte/check_buffer_fill.c > +++ b/tools/testing/selftests/arm64/mte/check_buffer_fill.c > @@ -417,6 +417,9 @@ int main(int argc, char *argv[]) > /* Register SIGSEGV handler */ > mte_register_signal(SIGSEGV, mte_default_handler); > > + /* Set test plan */ > + ksft_set_plan(20); > + > /* Buffer by byte tests */ > evaluate_test(check_buffer_by_byte(USE_MMAP, MTE_SYNC_ERR), > "Check buffer correctness by byte with sync err mode and mmap memory\n"); >