Skip to content

Commit fd1b4eb

Browse files
t-8chshuahkh
authored andcommitted
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>
1 parent 3d0b8e4 commit fd1b4eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/testing/selftests/kselftest.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ static inline __noreturn void ksft_exit_fail(void)
399399
#define ksft_finished() \
400400
ksft_exit(ksft_plan == \
401401
ksft_cnt.ksft_pass + \
402+
ksft_cnt.ksft_xpass + \
402403
ksft_cnt.ksft_xfail + \
403404
ksft_cnt.ksft_xskip)
404405

0 commit comments

Comments
 (0)