Re: [PATCH bpf-next 1/4] bpf/selftests: move assert macros into a dedicated header

Quentin Monnet
2026-01-15T11:42:42Z

2026-01-14 09:59 UTC+0100 ~ "Alexis Lothoré (eBPF Foundation)"
<alexis.lothore@bootlin.com>
> The test_progs runner defines a large set of convenient assert macros to
> perform all the tests. Writing a new runner involves rewriting some
> macros if we want some basic testing features like standardized failure
> log.
>
> Export those assert macros from test_progs into a dedicated header so
> that we can use those in any test_runner. The sole requirement to be
> able to use those macros is to define a test__fail function in the
> runner that will be called whenever an assert fails.
>
> Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>

Acked-by: Quentin Monnet <qmo@kernel.org>