aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh
diff options
context:
space:
mode:
authorShuah Khan (Samsung OSG) <shuah@kernel.org>2018-05-04 13:33:37 -0600
committerShuah Khan (Samsung OSG) <shuah@kernel.org>2018-05-30 15:29:06 -0600
commitb27f0259e8cea74c627327c063742a83613dd460 (patch)
treebe6111540155415ad3c37f73f9ae51e552d4bb52 /tools/testing/selftests/memory-hotplug/mem-on-off-test.sh
parentselftests: membarrier: return Kselftest Skip code for skipped tests (diff)
downloadwireguard-linux-b27f0259e8cea74c627327c063742a83613dd460.tar.xz
wireguard-linux-b27f0259e8cea74c627327c063742a83613dd460.zip
selftests: memfd: return Kselftest Skip code for skipped tests
When memfd test is skipped because of unmet dependencies and/or unsupported configuration, it returns non-zero value 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 check for root user at the start of memfd hugetlbfs test and return skip code if a non-root user attempts to run it. In addition, return skip code when not enough huge pages are available to run the test. 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> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Diffstat (limited to 'tools/testing/selftests/memory-hotplug/mem-on-off-test.sh')
0 files changed, 0 insertions, 0 deletions