mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 02:06:37 +00:00
Check if IPv6 supported before running the test, skip otherwise.
Sponsored by: DARPA, AFRL Sponsored by: HEIF5
This commit is contained in:
parent
19f1b6fb7b
commit
3a970562d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306231
|
@ -58,6 +58,10 @@ static_ipv6_loopback_route_for_each_fib_body()
|
|||
local nfibs fib
|
||||
nfibs=`sysctl -n net.fibs`
|
||||
|
||||
if [ "`sysctl -in kern.features.inet6`" != "1" ]; then
|
||||
atf_skip "This test requires IPv6 support"
|
||||
fi
|
||||
|
||||
# Check for an IPv6 loopback route
|
||||
for fib in `seq 0 $((${nfibs} - 1))`; do
|
||||
atf_check -o match:"interface: lo0" -s exit:0 \
|
||||
|
|
Loading…
Reference in a new issue