* [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics
@ 2026-11-14 8:10 Long Wei
0 siblings, 0 replies; only message in thread
From: Long Wei @ 2026-11-14 8:10 UTC (permalink / raw)
To: catalin.marinas, will, shuah
Cc: mark.rutland, broonie, kevin.brodsky, linux-arm-kernel,
linux-kselftest, hewenliang4, Long Wei
When a testcase is skipped because an incompatible CPU feature is
present, test_init() reports the feature set with:
feats_incompatible & ~feats_supported
That is the set of incompatible features which are *not* supported,
i.e. always empty, instead of the incompatible features which actually
triggered the skip. As a result the diagnostic prints an empty list and
gives no hint about why the test was skipped.
Use the supported set so the offending feature is reported:
feats_incompatible & feats_supported
Fixes: 32de73e89099 ("kselftest/arm64: signal: Allow tests to be incompatible with features")
Signed-off-by: Long Wei <longwei27@huawei.com>
---
tools/testing/selftests/arm64/signal/test_signals_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/arm64/signal/test_signals_utils.c b/tools/testing/selftests/arm64/signal/test_signals_utils.c
index 4b12dbd7669d..16036e06d6c1 100644
--- a/tools/testing/selftests/arm64/signal/test_signals_utils.c
+++ b/tools/testing/selftests/arm64/signal/test_signals_utils.c
@@ -365,7 +365,7 @@ int test_init(struct tdescr *td)
fprintf(stderr,
"Incompatible Features: [%s] supported\n",
feats_to_string(td->feats_incompatible &
- ~td->feats_supported));
+ td->feats_supported));
td->result = KSFT_SKIP;
--
2.43.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-14 8:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 8:10 [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics Long Wei
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox