ipfw: skip tests if required sysctl is not set

Since this is a configuration prerequisite rather than a test failure, use
atf_skip instead.

Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D56069
This commit is contained in:
Olivier Cochard committed 2026-03-25 16:55:57 +01:00
1 parent 6900d8b5c3
commit 648d0fefd7
1 file changed
+1 -1
+1 -1
View File
@@ -88,7 +88,7 @@ firewall_init()
if ! kldstat -q -m ipfw; then
atf_skip "This test requires ipfw"
elif [ $(sysctl -n net.inet.ip.fw.default_to_accept) -ne 1 ]; then
atf_fail "ipfw tests require net.inet.ip.fw.default_to_accept=1 tunable"
atf_skip "ipfw tests require net.inet.ip.fw.default_to_accept=1 tunable"
fi
elif [ ${firewall} == "pf" ]; then
if [ ! -c /dev/pf ]; then