diff options
author | Adam Sindelar <adam@wowsignal.io> | 2022-07-04 19:33:51 +0200 |
---|---|---|
committer | akpm <akpm@linux-foundation.org> | 2022-07-29 18:07:14 -0700 |
commit | 3b8e7f5c42d1aa44f71fd219717c80e34101361e (patch) | |
tree | 14caa1f22d1453c7b0d988f98060df419a3ebb72 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d6e103a757fa7876e7ded76128d5dffe12402ab9 (diff) |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions