]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf_iter: Don't fail test due to missing __builtin_btf_type_id
authorToke Høiland-Jørgensen <toke@redhat.com>
Tue, 29 Sep 2020 12:30:04 +0000 (14:30 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 29 Sep 2020 18:18:19 +0000 (11:18 -0700)
commitdf92efa681870f63cd63c8d9e8f327194000cc73
tree87a00faddae7d5cd0dedba9445c5912e3d95595f
parent8b194008886754e0ec6b1862f1b5e09279f08745
selftests/bpf_iter: Don't fail test due to missing __builtin_btf_type_id

The new test for task iteration in bpf_iter checks (in do_btf_read()) if it
should be skipped due to missing __builtin_btf_type_id. However, this
'skip' verdict is not propagated to the caller, so the parent test will
still fail. Fix this by also skipping the rest of the parent test if the
skip condition was reached.

Fixes: e4c3404b408c ("selftests/bpf: Add test for bpf_seq_printf_btf helper")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/bpf/20200929123004.46694-1-toke@redhat.com
tools/testing/selftests/bpf/prog_tests/bpf_iter.c