Author: br
Date: Fri Sep 23 07:51:01 2016
New Revision: 306231
URL: https://svnweb.freebsd.org/changeset/base/306231

Log:
  Check if IPv6 supported before running the test, skip otherwise.
  
  Sponsored by: DARPA, AFRL
  Sponsored by: HEIF5

Modified:
  head/tests/etc/rc.d/routing_test.sh

Modified: head/tests/etc/rc.d/routing_test.sh
==============================================================================
--- head/tests/etc/rc.d/routing_test.sh Fri Sep 23 07:48:34 2016        
(r306230)
+++ head/tests/etc/rc.d/routing_test.sh Fri Sep 23 07:51:01 2016        
(r306231)
@@ -58,6 +58,10 @@ static_ipv6_loopback_route_for_each_fib_
        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 \
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to