]> www.infradead.org Git - users/hch/misc.git/commit
selftests: bpf: fix duplicate selftests in cpumask_success.
authorEmil Tsalapatis <emil@etsalapatis.com>
Sun, 9 Mar 2025 23:04:27 +0000 (19:04 -0400)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:48:58 +0000 (11:48 -0700)
commitc06707ff07689b0ff026e68caabe6f2a85f40caf
tree076151a520eb08dc30d9748cf5a9c2d911afd3f7
parent014eb5c2d6351b428b10fb063a89c64436925eb2
selftests: bpf: fix duplicate selftests in cpumask_success.

The BPF cpumask selftests are currently run twice in
test_progs/cpumask.c, once by traversing cpumask_success_testcases, and
once by invoking RUN_TESTS(cpumask_success). Remove the invocation of
RUN_TESTS to properly run the selftests only once.

Now that the tests are run only through cpumask_success_testscases, add
to it the missing test_refcount_null_tracking testcase. Also remove the
__success annotation from it, since it is now loaded and invoked by the
runner.

Signed-off-by: Emil Tsalapatis (Meta) <emil@etsalapatis.com>
Acked-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20250309230427.26603-5-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/cpumask.c
tools/testing/selftests/bpf/progs/cpumask_success.c