Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kselftest/arm64: mte: Fix misleading output when skipping tests

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>

authored by

Mark Brown and committed by
Catalin Marinas
83e5dcbe e96595c5

+1 -1
+1 -1
tools/testing/selftests/arm64/mte/mte_common_util.c
··· 298 298 int ret; 299 299 300 300 if (!(hwcaps2 & HWCAP2_MTE)) { 301 - ksft_print_msg("FAIL: MTE features unavailable\n"); 301 + ksft_print_msg("SKIP: MTE features unavailable\n"); 302 302 return KSFT_SKIP; 303 303 } 304 304 /* Get current mte mode */