1
0
Fork 0

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>
hifive-unleashed-5.1
Shuah Khan (Samsung OSG) 2018-05-01 16:03:28 -06:00
parent a548de0fe8
commit 3c07aaef65
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
#define KSFT_XFAIL 2
#define KSFT_XPASS 3
/* Treat skip as pass */
#define KSFT_SKIP KSFT_PASS
#define KSFT_SKIP 4
/* counters */
struct ksft_count {