diff options
author | Tommi Rantala <tommi.t.rantala@nokia.com> | 2020-10-08 15:26:25 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2020-10-28 02:01:24 +0300 |
commit | 0b18fed98bf96ba5ac14ab7c43c8a3364cb0daf8 (patch) | |
tree | 984803baf7ada3cd180064b868f105755dd00fb2 /tools/lib/bpf | |
parent | ef7086347c82c53a6c5238bd2cf31379f6acadde (diff) | |
download | linux-0b18fed98bf96ba5ac14ab7c43c8a3364cb0daf8.tar.xz |
selftests: pidfd: use ksft_test_result_skip() when skipping test
There's planned tests != run tests in pidfd_test when some test is
skipped:
$ ./pidfd_test
TAP version 13
1..8
[...]
# pidfd_send_signal signal recycled pid test: Skipping test
# Planned tests != run tests (8 != 7)
# Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0
Fix by using ksft_test_result_skip():
$ ./pidfd_test
TAP version 13
1..8
[...]
ok 8 # SKIP pidfd_send_signal signal recycled pid test: Unsharing pid namespace not permitted
# Totals: pass:7 fail:0 xfail:0 xpass:0 skip:1 error:0
Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/lib/bpf')
0 files changed, 0 insertions, 0 deletions