summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sigaltstack
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2019-04-25 02:12:37 +0300
committerShuah Khan <skhan@linuxfoundation.org>2019-04-25 22:15:46 +0300
commit5821ba969511daf27fa917515904f7b823259cf7 (patch)
tree37b040c435d57a2e3485d297c42eb877cda6d7a7 /tools/testing/selftests/sigaltstack
parentf41c322f17ec4aa809222dc352439d80862c175b (diff)
downloadlinux-5821ba969511daf27fa917515904f7b823259cf7.tar.xz
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/sigaltstack')
-rw-r--r--tools/testing/selftests/sigaltstack/sas.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/sigaltstack/sas.c b/tools/testing/selftests/sigaltstack/sas.c
index 228c2ae47687..ad0f8df2ca0a 100644
--- a/tools/testing/selftests/sigaltstack/sas.c
+++ b/tools/testing/selftests/sigaltstack/sas.c
@@ -109,6 +109,7 @@ int main(void)
int err;
ksft_print_header();
+ ksft_set_plan(3);
sigemptyset(&act.sa_mask);
act.sa_flags = SA_ONSTACK | SA_SIGINFO;