Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp181458pxx; Mon, 26 Oct 2020 06:19:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYNBCWYNso5yWawS4G4EWCIVnq/RsmM4Zk5PAvQx7iibJDTPy9zIdofF2AxJoxj4A5dH/m X-Received: by 2002:a17:906:d78d:: with SMTP id pj13mr12412413ejb.36.1603718387303; Mon, 26 Oct 2020 06:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603718387; cv=none; d=google.com; s=arc-20160816; b=B/lX7hmMM+wRgNh4t+4r4U5at2H0vXsuSrlnbDZBjeeJKwnhycNvMikCpMLdEKd1Qy 8wytp4QpPSt0ifeA8Yino6tLr0VXhur4gKG+zo0Tz809xhpeN9+ETUXlG6WJoz5mDIDO H2Wh+reSjHJLDHNe7kOuBf/prA0ZXvZiU3So04erR5L0JNpX97vps5gGDaIaH1oxdxRN IArgeXMcfzc5HgVdLQbmBrS4rijbeUrnC5j2OhKBof/k/iQS06vZKca0WRendfidBPd9 Oq14fHZ6BcluEU3+YvgR92uDuiscfKAFG9rJPP/WIhsXrNYydb+kfLRJ8maEnZT9DI/z 0FkQ== 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=7XuW0anddOY34iCpBvh51ZktqyS40+/CetjsLPWynqw=; b=UFt0AisR/pChys5X/MQIzH/uzzIY9BHlEPVIYhx9HURf3QirE/+69iC+CaKqg/h+TI TCOTuoQ3Bvn7UWfhbQ5l/aq4dILjhBcEX6tD4h0jV2stGdmeCLu4dfzNCP5/n4y8fNyY ogKHLYlhHFZ/ImICjYSIcgJiinAa6dZbMMWA3w+AN4GnoFDONtwdNQPYu0G5f814RA/L 5/2HFVZaFQwpAidoLl8+ykCGNXIZ8m44NhuqKFy0aAnUXxLvKNNpzcVRojDbQhnC8V/W Nvc+r0f5kf8ZGdEwu9KaNDgoOCi/JKz1zdNO01gad1is90UpGs6sVZIV8zZYl2AP1TgO ABkQ== 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 z3si7646501ejw.468.2020.10.26.06.19.24; Mon, 26 Oct 2020 06:19:47 -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 S1774806AbgJZMNV (ORCPT + 99 others); Mon, 26 Oct 2020 08:13:21 -0400 Received: from foss.arm.com ([217.140.110.172]:37134 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1774764AbgJZMNL (ORCPT ); Mon, 26 Oct 2020 08:13:11 -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 888971476; Mon, 26 Oct 2020 05:13:10 -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 532F43F719; Mon, 26 Oct 2020 05:13:09 -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 3/6] kselftest/arm64: Fix check_child_memory test Date: Mon, 26 Oct 2020 12:12:45 +0000 Message-Id: <20201026121248.2340-4-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_child_memory test reports the error below because the test plan is not declared correctly: # Planned tests != run tests (0 != 12) Fix the test adding the correct test plan declaration. Fixes: dfe537cf4718 ("kselftest/arm64: Check forked child mte memory accessibility") 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_child_memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/arm64/mte/check_child_memory.c b/tools/testing/selftests/arm64/mte/check_child_memory.c index 97bebdecd29e..43bd94f853ba 100644 --- a/tools/testing/selftests/arm64/mte/check_child_memory.c +++ b/tools/testing/selftests/arm64/mte/check_child_memory.c @@ -163,6 +163,9 @@ int main(int argc, char *argv[]) mte_register_signal(SIGSEGV, mte_default_handler); mte_register_signal(SIGBUS, mte_default_handler); + /* Set test plan */ + ksft_set_plan(12); + evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE), "Check child anonymous memory with private mapping, precise mode and mmap memory\n"); evaluate_test(check_child_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_SHARED), -- 2.28.0