Files
linux/tools/testing
Artem Savkov 920fd5e177 selftests/bpf: Fix attach tests retcode checks
Switching to libbpf 1.0 API broke test_sock and test_sysctl as they
check for return of bpf_prog_attach to be exactly -1. Switch the check
to '< 0' instead.

Fixes: b858ba8c52 ("selftests/bpf: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK")
Signed-off-by: Artem Savkov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Yafang Shao <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
2022-04-21 16:34:55 +02:00
..