]> git.hungrycats.org Git - linux/commitdiff
selftests/arm64: Fix MTE prctl TAP plan
authorMuhammad Usama Anjum <usama.anjum@arm.com>
Tue, 25 Aug 2026 11:18:36 +0000 (12:18 +0100)
committerWill Deacon <will@kernel.org>
Thu, 27 Aug 2026 14:18:39 +0000 (14:18 +0000)
The MTE prctl test emits one result from check_basic_read() followed by
one result for each of the seven entries in mte_modes[]. However, the TAP
plan only accounts for the array entries, producing:

  # Planned tests != run tests (7 != 8)

Include the basic read check in the plan so that all eight emitted results
are declared.

Reviewed-by: Mark Brown <broonie@kernel.org>
Fixes: 1f488fb91378 ("kselftest/arm64/mte: Add MTE_STORE_ONLY testcases")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@arm.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/mte/check_prctl.c

index f7f320defa7b98df3e6064ad8dd516fc2085af79..d16a91117eef9f6e802f85b4d47f89064ca8d59c 100644 (file)
@@ -119,7 +119,7 @@ int main(void)
        int i;
 
        ksft_print_header();
-       ksft_set_plan(ARRAY_SIZE(mte_modes));
+       ksft_set_plan(ARRAY_SIZE(mte_modes) + 1);
 
        check_basic_read();
        for (i = 0; i < ARRAY_SIZE(mte_modes); i++)