From: Paolo Bonzini Date: Tue, 23 Jun 2020 00:15:47 +0000 (-0400) Subject: selftests: sync_test: do not use ksft_exit_skip after ksft_set_plan X-Git-Tag: v5.15~3212^2~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63aa57f52ce431682206f874a9d39a426e5ce7ea;p=platform%2Fkernel%2Flinux-starfive.git selftests: sync_test: 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. Move it before. Signed-off-by: Paolo Bonzini Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/sync/sync_test.c b/tools/testing/selftests/sync/sync_test.c index 3824b66..414a617 100644 --- a/tools/testing/selftests/sync/sync_test.c +++ b/tools/testing/selftests/sync/sync_test.c @@ -86,9 +86,9 @@ int main(void) int err; ksft_print_header(); - ksft_set_plan(3 + 7); sync_api_supported(); + ksft_set_plan(3 + 7); ksft_print_msg("[RUN]\tTesting sync framework\n");