]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit245dd6041d0d923fb6563a0704749d3a7de16c56
treefa6cbb4a39a620b4d44bf219c2160412c666cae2
parenteaa163caa4cc72c4381504562b6021a6ffbadc50
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