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

selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS

KSFT_SKIP points to KSFT_PASS resulting in reporting skipped tests as
Passed, when test programs exit with KSFT_SKIP or call ksft_exit_skip().
If tests are skipped because of unmet dependencies and/or unsupported
configuration, reporting them as passed leads to too many false positives.

Fix it to return a skip code of 4 to clearly differentiate the skipped
tests.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>

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