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 <pbonzini@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
Paolo Bonzini 2020-06-22 20:15:47 -04:00 committed by Shuah Khan
parent 5b0b77ac41
commit 63aa57f52c
1 changed files with 1 additions and 1 deletions

View File

@ -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");