Skip to content

Commit

Permalink
kselftest/arm64: mte: Fix misleading output when skipping tests
Browse files Browse the repository at this point in the history
[ Upstream commit 83e5dcb ]

When skipping the tests due to a lack of system support for MTE we
currently print a message saying FAIL which makes it look like the test
failed even though the test did actually report KSFT_SKIP, creating some
confusion. Change the error message to say SKIP instead so things are
clearer.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210819172902.56211-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
broonie authored and gregkh committed Sep 18, 2021
1 parent f64c7c4 commit 41733fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/arm64/mte/mte_common_util.c
Expand Up @@ -298,7 +298,7 @@ int mte_default_setup(void)
int ret;

if (!(hwcaps2 & HWCAP2_MTE)) {
ksft_print_msg("FAIL: MTE features unavailable\n");
ksft_print_msg("SKIP: MTE features unavailable\n");
return KSFT_SKIP;
}
/* Get current mte mode */
Expand Down

0 comments on commit 41733fa

Please sign in to comment.