Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Paolo Bonzini and committed by
Shuah Khan
63aa57f5 5b0b77ac

+1 -1
+1 -1
tools/testing/selftests/sync/sync_test.c
··· 86 86 int err; 87 87 88 88 ksft_print_header(); 89 - ksft_set_plan(3 + 7); 90 89 91 90 sync_api_supported(); 91 + ksft_set_plan(3 + 7); 92 92 93 93 ksft_print_msg("[RUN]\tTesting sync framework\n"); 94 94