]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: replace CHECK calls with ASSERT macros in flow_dissector test
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Wed, 20 Nov 2024 07:43:13 +0000 (08:43 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 2 Dec 2024 16:41:16 +0000 (08:41 -0800)
commit28494d6a277ebe5b9a5b1313b1f1ee396b890e35
tree80266f72495c507ca00c4c4ec0f1eb23d76b806d
parent3fed5d084fb36365ccf06b6fe20d19e0e672a47d
selftests/bpf: replace CHECK calls with ASSERT macros in flow_dissector test

The flow dissector test currently relies on generic CHECK macros to
perform tests. Update those to newer, more-specific ASSERT macros.

This update allows to get rid of the global duration variable, which was
needed by the CHECK macros

Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Link: https://lore.kernel.org/r/20241120-flow_dissector-v3-3-45b46494f937@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/flow_dissector.c