diff options
author | Kees Cook <keescook@chromium.org> | 2019-04-25 01:12:37 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2019-04-25 21:15:46 +0200 |
commit | 5821ba969511daf27fa917515904f7b823259cf7 (patch) | |
tree | 37b040c435d57a2e3485d297c42eb877cda6d7a7 /tools/testing/selftests/membarrier | |
parent | selftests: Remove KSFT_TAP_LEVEL (diff) | |
download | linux-5821ba969511daf27fa917515904f7b823259cf7.tar.xz linux-5821ba969511daf27fa917515904f7b823259cf7.zip |
selftests: Add test plan API to kselftest.h and adjust callers
The test plan for TAP needs to be declared immediately after the header.
This adds the test plan API to kselftest.h and updates all callers to
declare their expected test counts.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/membarrier')
-rw-r--r-- | tools/testing/selftests/membarrier/membarrier_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/membarrier/membarrier_test.c b/tools/testing/selftests/membarrier/membarrier_test.c index 6793f8ecc8e7..70b4ddbf126b 100644 --- a/tools/testing/selftests/membarrier/membarrier_test.c +++ b/tools/testing/selftests/membarrier/membarrier_test.c @@ -304,6 +304,7 @@ static int test_membarrier_query(void) int main(int argc, char **argv) { ksft_print_header(); + ksft_set_plan(13); test_membarrier_query(); test_membarrier(); |