selftests/bpf: Handle SYSCALL_EPERM and SYSCALL_ENOTSUPP test cases
authorJordan Rife <jrife@google.com>
Fri, 10 May 2024 19:02:22 +0000 (14:02 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 May 2024 00:10:41 +0000 (17:10 -0700)
commita2618c0d854235deaac2325cf8200a55274afa2b
treeacd965f32b49da9fcaa8dfaf856b360d37113a9b
parent5a047b2226c0511d4528d1467dc90f08fffafc38
selftests/bpf: Handle SYSCALL_EPERM and SYSCALL_ENOTSUPP test cases

In preparation to move test cases from bpf/test_sock_addr.c that expect
system calls to return ENOTSUPP or EPERM, this patch propagates errno
from relevant system calls up to test_sock_addr() where the result can
be checked.

Signed-off-by: Jordan Rife <jrife@google.com>
Link: https://lore.kernel.org/r/20240510190246.3247730-6-jrife@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sock_addr.c