Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <shuahkh@osg.samsung.com>

+2 -1
+2 -1
tools/testing/selftests/kselftest.h
··· 19 19 #define KSFT_FAIL 1 20 20 #define KSFT_XFAIL 2 21 21 #define KSFT_XPASS 3 22 - #define KSFT_SKIP 4 22 + /* Treat skip as pass */ 23 + #define KSFT_SKIP KSFT_PASS 23 24 24 25 /* counters */ 25 26 struct ksft_count {