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

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