selftests/bpf: Fix incorrect ASSERT in the tcp_hdr_options test
authorMartin KaFai Lau <martin.lau@kernel.org>
Mon, 7 Nov 2022 23:04:19 +0000 (15:04 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:11 +0000 (13:32 +0100)
commit8c39a6157c45c6e8c06c0ee948d58535c7f31942
treeb019c045e2ab94f3915dc8b07834d4b3eb885c6d
parent6bbbe4948d4640dd3ddfb5a971065edc29c14cf4
selftests/bpf: Fix incorrect ASSERT in the tcp_hdr_options test

[ Upstream commit 52929912d7bda040b43538e8d88e8d231b76eb4e ]

This patch fixes the incorrect ASSERT test in tcp_hdr_options during
the CHECK to ASSERT macro cleanup.

Fixes: 3082f8cd4ba3 ("selftests/bpf: Convert tcp_hdr_options test to ASSERT_* macros")
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Wang Yufen <wangyufen@huawei.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20221107230420.4192307-3-martin.lau@linux.dev
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c