Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp125391pxx; Tue, 27 Oct 2020 23:48:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdOltfLRbv1VS57k1rRkrFI5IKruHb2mA8OkpyoNQWzOS25gSEWE2rZvUYTuVM1N9Mrsvh X-Received: by 2002:a17:906:4d4f:: with SMTP id b15mr6061771ejv.356.1603867723726; Tue, 27 Oct 2020 23:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603867723; cv=none; d=google.com; s=arc-20160816; b=agnfUFsvQ0MxM3zh8p+7sOgLn9MzcHjDZuKlA60g1M80RCdxmjNjT6qszef+/9J+Dn qIjJqX1/JU7v6i/uhdAXIXdKQxKIXpER7lWA10CyOENWKuA5UcVwvGEw5sVAW8xhzipM 6AAzX+6am9euMM8AB9Qj2H3oY2jHBBaJAPzWuYRBqrVP/5bjljVoo4g6c3HOMVM6z+jf zcw+3jdy20tZl1sSoywG3e5OV+DTfXwh2UfAZQ4CzT3Qq4yomrSjrW3PDcium4steRp5 0OC41Y6PFZXxKae3LTyYqhrjxWbT1/7lIXBwIydJW0fT6JJGFhypP7PoTEdlb68C3V9N cIHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=AfLE8m3BZcq9HjhAOzMCpAggyQOL6ULY+4Uu34nRHOw=; b=pT4AljCJWMiSjrFWzhO+8ocNT74tUKazFIPYez8QXOjVS0QKT9qlBE28YDtqGlPEoH Ddb4DPtSJRAbpoSFLMS2LnpaFmqPISYv0YurzN80BRMk6lRbsa87E6HtzDG4MgRE/ftN ikatJgvktBWbpLw2dCidXVlZuj9OKf57uht9W9/B2MZ0osXsRcnM1IC+J5g/7IGOLzyW D/YVktGKwaTqiJ3HvbYPRBAkoxAtGHboCnmsNdfDreJwafMgrgmdVDuVnkj/xlHWmBzg 2pScjyMtvJru/8KwWAblcYqwqzVuuS/HFvI2pn/lf7M2e3Nq3pRinoV5zf7utwsNZWWB eIOA== 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 t1si2761263ejb.712.2020.10.27.23.48.21; Tue, 27 Oct 2020 23:48:43 -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 S2898038AbgJ0KZq (ORCPT + 99 others); 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-kernel@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"); >