]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Add header documentation and helpers
authorKees Cook <keescook@chromium.org>
Mon, 22 Jun 2020 18:16:47 +0000 (11:16 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Jul 2020 21:59:23 +0000 (15:59 -0600)
commitdce55fd1b6da50bc95a9071ede0d90929fd5c3e6
treefa6cbb4a39a620b4d44bf219c2160412c666cae2
parent8d23be35731393e81cdb150fb17700ee6647ba45
selftests: Add header documentation and helpers

Add "how to use this API" documentation to kselftest.h, and include some
addition helpers and notes to make things easier to use.

Additionally removes the incorrect "Bail out!" line from the standard exit
path. The TAP13 specification says that "Bail out!"  should be used when
giving up before all tests have been run. For a "normal" execution run,
the selftests should not report "Bail out!".

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