]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/harness: Add 30 second timeout per test
authorKees Cook <keescook@chromium.org>
Fri, 12 Apr 2019 00:11:08 +0000 (17:11 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 16 Apr 2019 23:04:34 +0000 (17:04 -0600)
commit9feef6235f4cc37645ed8e12caf90ebbacc2189d
tree4d0031d5008980801320d11e749b1e7d665a4416
parent00462ccf6d6c1d03a7a58e94ad78686b6cb010a4
selftests/harness: Add 30 second timeout per test

In order to keep tests from hanging forever, this adds an alarm signal
to each test run. This assumes an individual test doesn't take longer
than 30 seconds.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest_harness.h