Skip to content

Commit 1a2b80e

Browse files
roxellborkmann
authored andcommitted
selftests: net: reuseport_bpf_numa: don't fail if no numa support
The reuseport_bpf_numa test case fails there's no numa support. The test shouldn't fail if there's no support it should be skipped. Fixes: 3c2c3c1 ("reuseport, bpf: add test case for bpf_get_numa_node_id") Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent a6837d2 commit 1a2b80e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/selftests/net/reuseport_bpf_numa.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <unistd.h>
2424
#include <numa.h>
2525

26+
#include "../kselftest.h"
27+
2628
static const int PORT = 8888;
2729

2830
static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto)
@@ -229,7 +231,7 @@ int main(void)
229231
int *rcv_fd, nodes;
230232

231233
if (numa_available() < 0)
232-
error(1, errno, "no numa api support");
234+
ksft_exit_skip("no numa api support\n");
233235

234236
nodes = numa_max_node() + 1;
235237

0 commit comments

Comments
 (0)