net: require of both -external and -ipv6 flags to run IPv6 multicast tests

On BSD variants, the tests need surely constructed IPv6
routing table.

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/7776043
This commit is contained in:
Mikio Hara 2013-03-13 08:00:01 +08:00
parent d526e5e79c
commit 8373f729fd
1 changed files with 1 additions and 1 deletions

View 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 {