selftests: sync_test: do not use ksft_exit_skip after ksft_set_plan
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Jun 2020 00:15:47 +0000 (20:15 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Jul 2020 21:57:28 +0000 (15:57 -0600)
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>
tools/testing/selftests/sync/sync_test.c

index 3824b66..414a617 100644 (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");