]> Cypherpunks repositories - gostls13.git/commitdiff
net: require of both -external and -ipv6 flags to run IPv6 multicast tests
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 13 Mar 2013 00:00:01 +0000 (08:00 +0800)
committerMikio Hara <mikioh.mikioh@gmail.com>
Wed, 13 Mar 2013 00:00:01 +0000 (08:00 +0800)
On BSD variants, the tests need surely constructed IPv6
routing table.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/7776043

src/pkg/net/multicast_test.go

index 7d2e9c0e34ed92b7900a43d82cad37347a89161c..1eb6a420dc7218edbc824386bb874abeed093905 100644 (file)
@@ -117,7 +117,7 @@ func TestIPv6MulticastListener(t *testing.T) {
                // routing stuff for finding out an appropriate
                // nexthop containing both network and link layer
                // adjacencies.
-               if ifi == nil && !*testExternal {
+               if ifi == nil && (!*testExternal || !*testIPv6) {
                        continue
                }
                for _, tt := range ipv6MulticastListenerTests {