From 3a970562d7f8b2506f7bcbe378e3c02a408425d7 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Fri, 23 Sep 2016 07:51:01 +0000 Subject: [PATCH] Check if IPv6 supported before running the test, skip otherwise. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 --- tests/etc/rc.d/routing_test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/etc/rc.d/routing_test.sh b/tests/etc/rc.d/routing_test.sh index 4fd6754192b0..f1510cbf1730 100755 --- a/tests/etc/rc.d/routing_test.sh +++ b/tests/etc/rc.d/routing_test.sh @@ -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 \