]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/harness: Limit step counter reporting
authorKees Cook <keescook@chromium.org>
Tue, 14 Jul 2020 18:30:23 +0000 (11:30 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 17 Jul 2020 19:56:35 +0000 (13:56 -0600)
commit94954b6af2e7b2c3178d944ee033e29a3a4c0689
treea16d20db30270299c9bab9838eb60b2845a6eadd
parent0fbd5dee25ff56c16673d57da7caaa5fba05fb02
selftests/harness: Limit step counter reporting

When the selftest "step" counter grew beyond 255, non-fatal warnings
were being emitted, which is noisy and pointless. There are selftests
with more than 255 steps (especially those in loops, etc). Instead,
just cap "steps" to 254 and do not report the saturation.

Reported-by: Ralph Campbell <rcampbell@nvidia.com>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Fixes: 6ecdcc2b6801 ("selftests/harness: Refactor XFAIL into SKIP")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_harness.h