selftests/bpf: Skip timer_interrupt case when bpf_timer is not supported
authorLeon Hwang <leon.hwang@linux.dev>
Mon, 15 Sep 2025 12:16:57 +0000 (20:16 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 15 Sep 2025 17:22:58 +0000 (10:22 -0700)
commitf7528e4412138699d69946d2a811feb319268f6b
tree5c01e57867f4efcf7480c370da83e6d0dfa40e47
parent32d376610bdfdcda39e0a74aac7c6c3b92f91098
selftests/bpf: Skip timer_interrupt case when bpf_timer is not supported

Like commit fbdd61c94bcb ("selftests/bpf: Skip timer cases when bpf_timer is not supported"),
'timer_interrupt' test case should be skipped if verifier rejects
bpf_timer with returning -EOPNOTSUPP.

cd tools/testing/selftests/bpf
./test_progs -t timer
461     timer_interrupt:SKIP
Summary: 6/0 PASSED, 7 SKIPPED, 0 FAILED

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250915121657.28084-1-leon.hwang@linux.dev
tools/testing/selftests/bpf/prog_tests/timer.c