]> git.dujemihanovic.xyz Git - linux.git/commit
selftests/bpf: Migrate expected_attach_type tests
authorJordan Rife <jrife@google.com>
Fri, 10 May 2024 19:02:27 +0000 (14:02 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 13 May 2024 00:10:42 +0000 (17:10 -0700)
commitb0f3af0bffefc54650d9fb10810fc2f974365dfd
treed5e5c90bda48c70de53351c7e89eb8f805acdb4a
parent8eaf8056a44b28a7b198aa699e35854bbec2c452
selftests/bpf: Migrate expected_attach_type tests

Migrates tests from progs/test_sock_addr.c ensuring that programs fail
to load when the expected attach type does not match.

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