]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: test_xsk: Don't exit immediately when gettimeofday fails
authorBastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Fri, 31 Oct 2025 08:04:46 +0000 (09:04 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 Oct 2025 16:24:38 +0000 (09:24 -0700)
commit3f09728f908048ecff108e32d566aaf5d6ca315d
tree1edf148f3836c3d436bfd83bc79c148ab80a5b1b
parentf12f1b5d14b0a433a4fa4e1a710ea68d7d15d56b
selftests/bpf: test_xsk: Don't exit immediately when gettimeofday fails

exit_with_error() is called when gettimeofday() fails. This exits the
program immediately. It prevents the following tests from being run and
isn't compliant with the CI.

Return TEST_FAILURE instead of calling exit_on_error().

Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Bastien Curutchet (eBPF Foundation) <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20251031-xsk-v7-10-39fe486593a3@bootlin.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_xsk.c