selftests/bpf: Replaces the usage of CHECK calls for ASSERTs in bpf_obj_id
authorYuran Pereira <yuran.pereira@hotmail.com>
Tue, 21 Nov 2023 00:09:25 +0000 (05:39 +0530)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 21 Nov 2023 18:45:24 +0000 (10:45 -0800)
commitf125d09b99fc0ee43f865810390f10b8f23a2c98
treeb8c5a66cc6120605a5c7a110d05ed01be3a47f2d
parent3ec1114a97457398077e45b231d502d1cc30439d
selftests/bpf: Replaces the usage of CHECK calls for ASSERTs in bpf_obj_id

bpf_obj_id uses the `CHECK` calls even though the use of
ASSERT_ series of macros is preferred in the bpf selftests.

This patch replaces all `CHECK` calls for equivalent `ASSERT_`
macro calls.

Signed-off-by: Yuran Pereira <yuran.pereira@hotmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/GV1PR10MB65639AA3A10B4BBAA79952C7E8BBA@GV1PR10MB6563.EURPRD10.PROD.OUTLOOK.COM
tools/testing/selftests/bpf/prog_tests/bpf_obj_id.c