linux-sg2042/tools/testing/selftests/static_keys
Shuah Khan (Samsung OSG) 8781578087 selftests: static_keys: return Kselftest Skip code for skipped tests
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>
2018-06-18 09:11:09 -06: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-06-18 09:11:09 -06:00