]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS
authorShuah Khan (Samsung OSG) <shuah@kernel.org>
Tue, 1 May 2018 22:03:28 +0000 (16:03 -0600)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:21:52 +0000 (15:21 -0600)
commit3c07aaef65988473c6cea5bd194125f905953fcc
tree93eb907f2e664f2f540c8406ed47680928fd253a
parenta548de0fe8e18be6bc15d8e41ad2a1728886d0dc
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>
tools/testing/selftests/kselftest.h