selftests/bpf: Switch reuseport tests for test_progs framework
authorJakub Sitnicki <jakub@cloudflare.com>
Thu, 12 Dec 2019 10:22:59 +0000 (11:22 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 20:38:00 +0000 (12:38 -0800)
commit7ee0d4e97b889c0478af9c1a6e5af658b181423f
treedcffd59561310d2c01b382f5aa54234e2eae0e35
parent415bb4e125b68a3aaccb8381baaa4a06dd1dcb27
selftests/bpf: Switch reuseport tests for test_progs framework

The tests were originally written in abort-on-error style. With the switch
to test_progs we can no longer do that. So at the risk of not cleaning up
some resource on failure, we now return to the caller on error.

That said, failure inside one test should not affect others because we run
setup/cleanup before/after every test.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191212102259.418536-11-jakub@cloudflare.com
tools/testing/selftests/bpf/prog_tests/select_reuseport.c