Blame SOURCES/net-snmp-5.7-skip-ipv6-tests.patch

9a6c41
657835: IPv6 tests fail instead of being skipped
9a6c41
9a6c41
Detect ipv6 before testing ipv6 transports.
9a6c41
9a6c41
diff -up net-snmp-5.7.2.pre2/testing/fulltests/transports/T320udpv6_simple.rhel net-snmp-5.7.2.pre2/testing/fulltests/transports/T320udpv6_simple
9a6c41
--- net-snmp-5.7.2.pre2/testing/fulltests/transports/T320udpv6_simple.rhel	2012-07-12 04:23:25.000000000 +0200
9a6c41
+++ net-snmp-5.7.2.pre2/testing/fulltests/transports/T320udpv6_simple	2012-07-31 11:10:22.668307328 +0200
9a6c41
@@ -6,6 +6,13 @@ HEADER UDP6 Transport
9a6c41
 
9a6c41
 SKIPIFNOT NETSNMP_TRANSPORT_UDPIPV6_DOMAIN
9a6c41
 
9a6c41
+# primitive detection of ipv6
9a6c41
+if test `uname -s` == "Linux" ; then
9a6c41
+    if test ! -e /proc/net/if_inet6; then
9a6c41
+        SKIP
9a6c41
+    fi
9a6c41
+fi
9a6c41
+
9a6c41
 #
9a6c41
 # Begin test
9a6c41
 #
9a6c41
diff -up net-snmp-5.7.2.pre2/testing/fulltests/transports/T330tcpv6_simple.rhel net-snmp-5.7.2.pre2/testing/fulltests/transports/T330tcpv6_simple
9a6c41
--- net-snmp-5.7.2.pre2/testing/fulltests/transports/T330tcpv6_simple.rhel	2012-07-12 04:23:25.000000000 +0200
9a6c41
+++ net-snmp-5.7.2.pre2/testing/fulltests/transports/T330tcpv6_simple	2012-07-31 11:10:07.756378344 +0200
9a6c41
@@ -6,6 +6,13 @@ HEADER TCP6 Transport
9a6c41
 
9a6c41
 SKIPIFNOT NETSNMP_TRANSPORT_TCPIPV6_DOMAIN
9a6c41
 
9a6c41
+# primitive detection of ipv6
9a6c41
+if test `uname -s` == "Linux" ; then
9a6c41
+    if test ! -e /proc/net/if_inet6; then
9a6c41
+        SKIP
9a6c41
+    fi
9a6c41
+fi
9a6c41
+
9a6c41
 #
9a6c41
 # Begin test
9a6c41
 #