aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2026-01-12 15:27:26 +0000
committerMark Johnston <markj@FreeBSD.org>2026-01-12 15:34:43 +0000
commit32ec9d87ce9e6328408036af921369b7bf30f00c (patch)
treed83dfbc224b0f6e0b4a14bc4ae6fb690508b419e
parent045112f148fa092c92ec53204708f638b226ff8f (diff)
bpf/tests: Run tests in an execenv jail
Otherwise the tests cannot be run in parallel since they create identically named jails. Fixes: dd49816b0d66 ("bpf: avoid panic on multiple readers")
-rw-r--r--tests/sys/net/bpf/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sys/net/bpf/Makefile b/tests/sys/net/bpf/Makefile
index 641d1aaef676..cee27b550434 100644
--- a/tests/sys/net/bpf/Makefile
+++ b/tests/sys/net/bpf/Makefile
@@ -14,4 +14,7 @@ LIBADD.pcap-test+= pcap
ATF_TESTS_SH= bpf
+TEST_METADATA.bpf+= execenv="jail" \
+ execenv_jail_params="vnet allow.raw_sockets"
+
.include <bsd.test.mk>