selftests: vm: return Kselftest Skip code for skipped tests
authorShuah Khan (Samsung OSG) <shuah@kernel.org>
Thu, 14 Jun 2018 03:31:43 +0000 (21:31 -0600)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Mon, 18 Jun 2018 15:11:10 +0000 (09:11 -0600)
commita4d7537789724985cafbc9260a31ca4f2b7cf123
tree76e6ab57460e803874f61b93662e22f9e3b20261
parent685814466bf8398192cf855415a0bb2cefc1930e
selftests: vm: return Kselftest Skip code for skipped tests

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

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>
Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
tools/testing/selftests/vm/compaction_test.c
tools/testing/selftests/vm/mlock2-tests.c
tools/testing/selftests/vm/run_vmtests
tools/testing/selftests/vm/userfaultfd.c