diff mbox series

[v2,6/6] selftests: sync_test: do not use ksft_exit_skip after ksft_set_plan

Message ID 20200623001547.22255-7-pbonzini@redhat.com
State Accepted
Commit 63aa57f52ce431682206f874a9d39a426e5ce7ea
Headers show
Series [v2,1/6] kselftest: fix TAP output for skipped tests | expand

Commit Message

Paolo Bonzini June 23, 2020, 12:15 a.m. UTC
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>
---
 tools/testing/selftests/sync/sync_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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