forked from Minki/linux
selftests/bpf: Convert sockopt_sk test to ASSERT_* macros
Convert the selftest to use the preferred ASSERT_* macros instead of the deprecated CHECK(). Signed-off-by: Wang Yufen <wangyufen@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/1664169131-32405-7-git-send-email-wangyufen@huawei.com
This commit is contained in:
parent
a605a6bbcc
commit
f19708dfa0
@ -223,7 +223,7 @@ void test_sockopt_sk(void)
|
||||
int cgroup_fd;
|
||||
|
||||
cgroup_fd = test__join_cgroup("/sockopt_sk");
|
||||
if (CHECK_FAIL(cgroup_fd < 0))
|
||||
if (!ASSERT_GE(cgroup_fd, 0, "join_cgroup /sockopt_sk"))
|
||||
return;
|
||||
|
||||
run_test(cgroup_fd);
|
||||
|
Loading…
Reference in New Issue
Block a user