summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2026-03-02 17:13:28 +0300
committerShuah Khan <skhan@linuxfoundation.org>2026-03-31 22:48:10 +0300
commitfd1b4eb837c5d133139eeaf7ec8a330ed1bd13c5 (patch)
tree0c66c246caccfe66c10f6044eb3ece4537b2d346
parent3d0b8e45075d398369eb07e11f529c17a63cf5e1 (diff)
downloadlinux-fd1b4eb837c5d133139eeaf7ec8a330ed1bd13c5.tar.xz
selftests: kselftest: Treat xpass as successful result
The harness treats these tests as successful, as does pytest. Align kselftest.h to the rest of the ecosystem. None of the Linux selftests seem to actually use this anyways. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Link: https://lore.kernel.org/r/20260302-kselftest-harness-v2-1-3143aa41d989@linutronix.de Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r--tools/testing/selftests/kselftest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/kselftest.h b/tools/testing/selftests/kselftest.h
index afbcf8412ae5..1e7e73f77fa7 100644
--- a/tools/testing/selftests/kselftest.h
+++ b/tools/testing/selftests/kselftest.h
@@ -399,6 +399,7 @@ static inline __noreturn void ksft_exit_fail(void)
#define ksft_finished() \
ksft_exit(ksft_plan == \
ksft_cnt.ksft_pass + \
+ ksft_cnt.ksft_xpass + \
ksft_cnt.ksft_xfail + \
ksft_cnt.ksft_xskip)