aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/sync/sync_test.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-06-22 20:15:47 -0400
committerShuah Khan <skhan@linuxfoundation.org>2020-07-06 15:57:28 -0600
commit63aa57f52ce431682206f874a9d39a426e5ce7ea (patch)
treef351c752df4bcab94ae14bb158f9e17438c374cd /tools/testing/selftests/sync/sync_test.c
parentselftests: sigaltstack: do not use ksft_exit_skip after ksft_set_plan (diff)
downloadlinux-dev-63aa57f52ce431682206f874a9d39a426e5ce7ea.tar.xz
linux-dev-63aa57f52ce431682206f874a9d39a426e5ce7ea.zip
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>
Diffstat (limited to 'tools/testing/selftests/sync/sync_test.c')
-rw-r--r--tools/testing/selftests/sync/sync_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/sync/sync_test.c b/tools/testing/selftests/sync/sync_test.c
index 3824b66f41a0..414a617db993 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");