aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2023-03-15 17:07:25 -0700
committerDaniel Borkmann <[email protected]>2023-03-16 18:12:59 +0100
commited01385c0d78a025bdc72128b7aa7c3309cd5852 (patch)
treea662fc4dae1b9dc5b2d59e6548863dcf59cfc0bd /include/linux/debugobjects.h
parent72fe61d745cb0e199448e9125d894e59508b2bb3 (diff)
selftests/bpf: Use ASSERT_EQ instead ASSERT_OK for testing memcmp result
In tcp_hdr_options test, it ensures the received tcp hdr option and the sk local storage have the expected values. It uses memcmp to check that. Testing the memcmp result with ASSERT_OK is confusing because ASSERT_OK will print out the errno which is not set. This patch uses ASSERT_EQ to check for 0 instead. Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Yonghong Song <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions