Skip to content

Commit 11867a7

Browse files
author
Shuah Khan
committed
selftests: kselftest framework: change skip exit code to 0
When a test is skipped, instead of using a special exit code of 4, treat it as pass condition and use exit code of 0. It makes sense to treat skip as pass since the test couldn't be run as opposed to a failed test. Signed-off-by: Shuah Khan <[email protected]>
1 parent 8f14e26 commit 11867a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/testing/selftests/kselftest.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
#define KSFT_FAIL 1
2020
#define KSFT_XFAIL 2
2121
#define KSFT_XPASS 3
22-
#define KSFT_SKIP 4
22+
/* Treat skip as pass */
23+
#define KSFT_SKIP KSFT_PASS
2324

2425
/* counters */
2526
struct ksft_count {

0 commit comments

Comments
 (0)