Skip to content

Commit 5b0b77a

Browse files
bonzinishuahkh
authored andcommitted
selftests: sigaltstack: do not use ksft_exit_skip after ksft_set_plan
Calling ksft_exit_skip after ksft_set_plan results in executing fewer tests than planned. Use ksft_test_result_skip when possible, or just bail out if memory corruption is detected. Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent f000a39 commit 5b0b77a

File tree

1 file changed

+2
-2
lines changed
  • tools/testing/selftests/sigaltstack

1 file changed

+2
-2
lines changed

tools/testing/selftests/sigaltstack/sas.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void my_usr1(int sig, siginfo_t *si, void *u)
7171
swapcontext(&sc, &uc);
7272
ksft_print_msg("%s\n", p->msg);
7373
if (!p->flag) {
74-
ksft_exit_skip("[RUN]\tAborting\n");
74+
ksft_exit_fail_msg("[RUN]\tAborting\n");
7575
exit(EXIT_FAILURE);
7676
}
7777
}
@@ -144,7 +144,7 @@ int main(void)
144144
err = sigaltstack(&stk, NULL);
145145
if (err) {
146146
if (errno == EINVAL) {
147-
ksft_exit_skip(
147+
ksft_test_result_skip(
148148
"[NOTE]\tThe running kernel doesn't support SS_AUTODISARM\n");
149149
/*
150150
* If test cases for the !SS_AUTODISARM variant were

0 commit comments

Comments
 (0)