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

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