]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: kselftest framework: provide "finished" helper
authorKees Cook <keescook@chromium.org>
Fri, 25 Mar 2022 01:14:18 +0000 (18:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Mar 2022 02:06:51 +0000 (19:06 -0700)
commit18cb7cb5664cf3cf8b55bfeb9bd757559db952e6
treead95618faec3f5e14cd5e4ff5805d4a1fbf3abe2
parent0cc6e863efb18f4a0c8c79762dd273a0e01e4977
selftests: kselftest framework: provide "finished" helper

Instead of having each time that wants to use ksft_exit() have to figure
out the internals of kselftest.h, add the helper ksft_finished() that
makes sure the passes, xfails, and skips are equal to the test plan count.

Link: https://lkml.kernel.org/r/20220201013717.2464392-1-keescook@chromium.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/kselftest.h
tools/testing/selftests/vm/memfd_secret.c