selftests/bpf: Replace CHECK with ASSERT macros for ksyms test
authorYonghong Song <yonghong.song@linux.dev>
Tue, 26 Mar 2024 04:14:48 +0000 (21:14 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:31:41 +0000 (18:31 -0700)
commitcdfd9cc3ba147ceea650afa6b7031e31a98d500e
tree88e523f9118aefb1d02fc15de5a794d14e670d6a
parent5da7fb04902b0f0fcd13bc5ef216e232fa971efa
selftests/bpf: Replace CHECK with ASSERT macros for ksyms test

Replace CHECK with ASSERT macros for ksyms tests.
This test failed earlier with clang lto kernel, but the
issue is gone with latest code base. But replacing
CHECK with ASSERT still improves code as ASSERT is
preferred in selftests.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240326041448.1197812-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/ksyms.c