diff options
author | 2019-04-24 16:12:37 -0700 | |
---|---|---|
committer | 2019-04-25 13:15:46 -0600 | |
commit | 5821ba969511daf27fa917515904f7b823259cf7 (patch) | |
tree | 37b040c435d57a2e3485d297c42eb877cda6d7a7 /tools/testing/selftests/futex/functional/futex_requeue_pi.c | |
parent | selftests: Remove KSFT_TAP_LEVEL (diff) | |
download | linux-dev-5821ba969511daf27fa917515904f7b823259cf7.tar.xz linux-dev-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/futex/functional/futex_requeue_pi.c')
-rw-r--r-- | tools/testing/selftests/futex/functional/futex_requeue_pi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/futex/functional/futex_requeue_pi.c b/tools/testing/selftests/futex/functional/futex_requeue_pi.c index 54cd5c414e82..8d20957f7586 100644 --- a/tools/testing/selftests/futex/functional/futex_requeue_pi.c +++ b/tools/testing/selftests/futex/functional/futex_requeue_pi.c @@ -395,6 +395,7 @@ int main(int argc, char *argv[]) } ksft_print_header(); + ksft_set_plan(1); ksft_print_msg("%s: Test requeue functionality\n", basename(argv[0])); ksft_print_msg( "\tArguments: broadcast=%d locked=%d owner=%d timeout=%ldns\n", |