diff options
author | 2024-04-20 11:09:12 +0200 | |
---|---|---|
committer | 2024-04-23 19:46:57 -0700 | |
commit | e3d9eac99afd94980475833479332fefd74c5c2b (patch) | |
tree | 574bb867d45251d887c5ace80758a5f01322909b /tools/testing/selftests/bpf/prog_tests | |
parent | bpf: wq: add bpf_wq_init (diff) | |
download | wireguard-linux-e3d9eac99afd94980475833479332fefd74c5c2b.tar.xz wireguard-linux-e3d9eac99afd94980475833479332fefd74c5c2b.zip |
selftests/bpf: wq: add bpf_wq_init() checks
Allows to test if allocation/free works
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Link: https://lore.kernel.org/r/20240420-bpf_wq-v2-12-6c986a5a741f@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
-rw-r--r-- | tools/testing/selftests/bpf/prog_tests/wq.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/wq.c b/tools/testing/selftests/bpf/prog_tests/wq.c index 9a07b8bc2c52..26ab69796103 100644 --- a/tools/testing/selftests/bpf/prog_tests/wq.c +++ b/tools/testing/selftests/bpf/prog_tests/wq.c @@ -2,6 +2,7 @@ /* Copyright (c) 2024 Benjamin Tissoires */ #include <test_progs.h> #include "wq.skel.h" +#include "wq_failures.skel.h" void serial_test_wq(void) { @@ -9,3 +10,10 @@ void serial_test_wq(void) RUN_TESTS(wq); } + +void serial_test_failures_wq(void) +{ + LIBBPF_OPTS(bpf_test_run_opts, topts); + + RUN_TESTS(wq_failures); +} |