]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00ecf21c2d3301ae0c5f17b290125d0b3b0185dd
treeecdf658daaf7bbfa59e802e60f8f6b5bf9391357
parente7e1d21cd2cfa4017ca88b3f614efc7e91ffbc83
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