Skip to content

Commit 5eff48f

Browse files
jrifeAlexei Starovoitov
authored andcommitted
selftests/bpf: Handle LOAD_REJECT test cases
In preparation to move test cases from bpf/test_sock_addr.c that expect LOAD_REJECT, this patch adds expected_attach_type and extends load_fn to accept an expected attach type and a flag indicating whether or not rejection is expected. Signed-off-by: Jordan Rife <jrife@google.com> Link: https://lore.kernel.org/r/20240510190246.3247730-4-jrife@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 86b65c6 commit 5eff48f

1 file changed

Lines changed: 98 additions & 5 deletions

File tree

0 commit comments

Comments
 (0)