]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/selftests: convert xdp_link test to ASSERT_* macros
authorToke Høiland-Jørgensen <toke@redhat.com>
Fri, 7 Jan 2022 22:11:14 +0000 (23:11 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 11 Jan 2022 17:44:06 +0000 (09:44 -0800)
commit427415119b781ab6814c3c39f494e14697f342d2
treee15bef15415489919449e79413543927d2a861f6
parent5107e619a91df179e50c439df567dfec33b71d6b
bpf/selftests: convert xdp_link test to ASSERT_* macros

Convert the selftest to use the preferred ASSERT_* macros instead of the
deprecated CHECK().

v2:
- Don't add if statements around checks if they weren't there before.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20220107221115.326171-2-toke@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/xdp_link.c