diff mbox

[go] : Disable TestListenMulticastUDP on alpha linux

Message ID CAFULd4an_Hd9OkqPRNKr-s-xgtmq=gVVHKhuxCocyjOpqB+nVw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak Feb. 13, 2012, 7:59 p.m. UTC
Hello!

alpha linux does not have expected "/proc/net/igmp" and
"/proc/net/igmp6" files, so "func interfaceMulticastAddrTable(ifindex
int)" from interface_linux.go always returns (nil, nil), failing
net/test with:

--- FAIL: net.TestListenMulticastUDP (4.71 seconds)
        ???:1: IPv4 multicast interface: <nil>
        ???:1: IPv4 multicast TTL: 1
        ???:1: IPv4 multicast loopback: false
        ???:1: "224.0.0.254:12345" not found in RIB
FAIL

Attached patch skips this sub-test in the same way as for ARM arch.

Tested on alphaev6-pc-linux-gnu, where it "fixes" failing net test.

Uros.

Comments

Ian Lance Taylor Feb. 14, 2012, 12:30 a.m. UTC | #1
Uros Bizjak <ubizjak@gmail.com> writes:

> alpha linux does not have expected "/proc/net/igmp" and
> "/proc/net/igmp6" files, so "func interfaceMulticastAddrTable(ifindex
> int)" from interface_linux.go always returns (nil, nil), failing
> net/test with:
>
> --- FAIL: net.TestListenMulticastUDP (4.71 seconds)
>         ???:1: IPv4 multicast interface: <nil>
>         ???:1: IPv4 multicast TTL: 1
>         ???:1: IPv4 multicast loopback: false
>         ???:1: "224.0.0.254:12345" not found in RIB
> FAIL
>
> Attached patch skips this sub-test in the same way as for ARM arch.
>
> Tested on alphaev6-pc-linux-gnu, where it "fixes" failing net test.

Thanks.

Committed.

Ian
diff mbox

Patch

Index: go/net/multicast_test.go
===================================================================
--- go/net/multicast_test.go	(revision 184156)
+++ go/net/multicast_test.go	(working copy)
@@ -33,7 +33,7 @@ 
 	case "netbsd", "openbsd", "plan9", "windows":
 		return
 	case "linux":
-		if runtime.GOARCH == "arm" {
+		if runtime.GOARCH == "arm" || runtime.GOARCH == "alpha" {
 			return
 		}
 	}