selftests: Add test plan API to kselftest.h and adjust callers
authorKees Cook <keescook@chromium.org>
Wed, 24 Apr 2019 23:12:37 +0000 (16:12 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 25 Apr 2019 19:15:46 +0000 (13:15 -0600)
commit5821ba969511daf27fa917515904f7b823259cf7
tree37b040c435d57a2e3485d297c42eb877cda6d7a7
parentf41c322f17ec4aa809222dc352439d80862c175b
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>
16 files changed:
tools/testing/selftests/breakpoints/breakpoint_test.c
tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
tools/testing/selftests/breakpoints/step_after_suspend_test.c
tools/testing/selftests/capabilities/test_execve.c
tools/testing/selftests/futex/functional/futex_requeue_pi.c
tools/testing/selftests/futex/functional/futex_requeue_pi_mismatched_ops.c
tools/testing/selftests/futex/functional/futex_requeue_pi_signal_restart.c
tools/testing/selftests/futex/functional/futex_wait_private_mapped_file.c
tools/testing/selftests/futex/functional/futex_wait_timeout.c
tools/testing/selftests/futex/functional/futex_wait_uninitialized_heap.c
tools/testing/selftests/futex/functional/futex_wait_wouldblock.c
tools/testing/selftests/kselftest.h
tools/testing/selftests/membarrier/membarrier_test.c
tools/testing/selftests/pidfd/pidfd_test.c
tools/testing/selftests/sigaltstack/sas.c
tools/testing/selftests/sync/sync_test.c