1
0
Fork 0
remarkable-linux/tools/testing/selftests/static_keys
Shuah Khan (Samsung OSG) bc5e458a9e selftests: static_keys: return Kselftest Skip code for skipped tests
[ Upstream commit 8781578087 ]

When static_keys 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.

Added an explicit searches for test_static_key_base and test_static_keys
modules and return skip code if they aren't found to differentiate between
the failure to load the module condition and module not found condition.

Kselftest framework SKIP code is 4 and the framework prints appropriate
messages to indicate that the test is skipped.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-24 13:08:57 +02:00
..
Makefile locking/static_keys: Provide a selftest 2015-08-03 11:51:12 +02:00
config selftests: create test-specific kconfig fragments 2016-02-25 09:47:52 -07:00
test_static_keys.sh selftests: static_keys: return Kselftest Skip code for skipped tests 2018-08-24 13:08:57 +02:00