OSDN Git Service

selftests: pidfd: do not use ksft_exit_skip after ksft_set_plan
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jul 2020 15:39:26 +0000 (11:39 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 7 Jul 2020 19:28:44 +0000 (13:28 -0600)
commitbb91c0ca7b74efde2257ca4f0b1ba93e834e47e1
treeecdf658daaf7bbfa59e802e60f8f6b5bf9391357
parent0ef67a888375b0d11930a9811e1152b6ebc385a8
selftests: pidfd: 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.  Use ksft_test_result_skip instead.

The plan passed to ksft_set_plan was wrong, too, so fix it while at it.

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/pidfd/pidfd_test.c