WSL2-Linux-Kernel/tools/testing/selftests/breakpoints
Shuah Khan (Samsung OSG) 423353a11e selftests: breakpoints: return Kselftest Skip code for skipped tests
When step_after_suspend_test is skipped because of unmet dependencies
and/or unsupported configuration, it exits with error which is treated
as a fail by the Kselftest framework. This leads to false negative result
even when the test could not be run.

Change it to return kselftest skip code when a test gets skipped to clearly
report that the test could not be run.

Change it to use ksft_exit_skip() when a non-root user runs the test and
add an explicit check for root and a clear message, instead of failing
the test when /sys/power/state file open fails.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
2018-05-30 15:21:52 -06:00
..
.gitignore
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
breakpoint_test.c selftests: breakpoint_test: Add missing line breaks 2017-07-26 10:32:31 -06:00
breakpoint_test_arm64.c selftests: breakpoints: fix compile error on breakpoint_test_arm64 2017-11-15 08:01:43 -07:00
step_after_suspend_test.c selftests: breakpoints: return Kselftest Skip code for skipped tests 2018-05-30 15:21:52 -06:00