diff options
author | Adam Sindelar <adam@wowsignal.io> | 2022-07-04 20:33:51 +0300 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-30 04:07:14 +0300 |
commit | 3b8e7f5c42d1aa44f71fd219717c80e34101361e (patch) | |
tree | 14caa1f22d1453c7b0d988f98060df419a3ebb72 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d6e103a757fa7876e7ded76128d5dffe12402ab9 (diff) | |
download | linux-3b8e7f5c42d1aa44f71fd219717c80e34101361e.tar.xz |
selftests/vm: fix errno handling in mrelease_test
mrelease_test should return KSFT_SKIP when process_mrelease is not
defined, but due to a perror call consuming the errno, it returns
KSFT_FAIL.
This patch decides the exit code before calling perror.
[adam@wowsignal.io: fix remaining instances of errno mishandling]
Link: https://lkml.kernel.org/r/20220706141602.10159-1-adam@wowsignal.io
Link: https://lkml.kernel.org/r/20220704173351.19595-1-adam@wowsignal.io
Fixes: 33776141b812 ("selftests: vm: add process_mrelease tests")
Signed-off-by: Adam Sindelar <adam@wowsignal.io>
Reviewed-by: David Vernet <void@manifault.com>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions