]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests: kselftest: Treat xpass as successful result
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 2 Mar 2026 14:13:28 +0000 (15:13 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 31 Mar 2026 19:48:10 +0000 (13:48 -0600)
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>
tools/testing/selftests/kselftest.h

index afbcf8412ae5bd9c43cc2f11fbbd81d434755303..1e7e73f77fa7697b4c8e67a36ee7e7d437f2e6d1 100644 (file)
@@ -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)