diff options
| author | Tommi Rantala <[email protected]> | 2020-10-08 12:26:25 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2020-10-27 23:01:24 +0000 |
| commit | 0b18fed98bf96ba5ac14ab7c43c8a3364cb0daf8 (patch) | |
| tree | 984803baf7ada3cd180064b868f105755dd00fb2 /fs/proc/array.c | |
| parent | selftests/harness: prettify SKIP message whitespace again (diff) | |
| download | kernel-0b18fed98bf96ba5ac14ab7c43c8a3364cb0daf8.tar.gz kernel-0b18fed98bf96ba5ac14ab7c43c8a3364cb0daf8.zip | |
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 <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
