]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Avoid errno clobbering
authorFlorian Lehner <dev@der-flo.net>
Fri, 4 Dec 2020 18:18:28 +0000 (19:18 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 4 Dec 2020 19:53:17 +0000 (11:53 -0800)
commiteabbf25a3077478319dfbe9a74c1a5928251b16b
tree48b760d9508995956455c121c66b063312b833e4
parentc0936440bab5dfc62ab25e27b487b9b80412d85a
selftests/bpf: Avoid errno clobbering

Print a message when the returned error is about a program type being
not supported or because of permission problems.
These messages are expected if the program to test was actually
executed.

Signed-off-by: Florian Lehner <dev@der-flo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20201204181828.11974-3-dev@der-flo.net
tools/testing/selftests/bpf/test_verifier.c