selftests/bpf: Propagate errors during setup for reuseport tests
authorJakub Sitnicki <jakub@cloudflare.com>
Thu, 12 Dec 2019 10:22:56 +0000 (11:22 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Dec 2019 20:38:00 +0000 (12:38 -0800)
commit9af6c84435d0252e532c7f8bb70f1ed64a22ae2a
tree80d6da11a91d5b19255943674f31bda7c68fd619
parentce7cb5f3921cdf0f65ab877764265c6c0be34c3c
selftests/bpf: Propagate errors during setup for reuseport tests

Prepare for switching reuseport tests to test_progs framework, where we
don't have the luxury to terminate the process on failure.

Modify setup helpers to signal failure via the return value with the help
of a macro similar to the one currently in use by the tests.

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