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-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63aa57f52ce431682206f874a9d39a426e5ce7ea;p=linux.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 3824b66f41a09..414a617db9933 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");