]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: maybe fix TestLinuxSendfile on mips64
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 21 Nov 2016 21:51:01 +0000 (21:51 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 21 Nov 2016 22:15:54 +0000 (22:15 +0000)
Updates #18008

Change-Id: I8fde0d71d15b416db4d262f6db8ef32a209a192f
Reviewed-on: https://go-review.googlesource.com/33426
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/fs_test.go

index 910295c180eed4e6c55a600ea42abd50503c8e62..83f81e3efb1f5e1b2d200fed496aec9d2b9c9e49 100644 (file)
@@ -1086,10 +1086,14 @@ func TestLinuxSendfile(t *testing.T) {
 
        syscalls := "sendfile,sendfile64"
        switch runtime.GOARCH {
-       case "mips64", "mips64le", "s390x":
+       case "mips64le", "s390x":
                // strace on the above platforms doesn't support sendfile64
                // and will error out if we specify that with `-e trace='.
                syscalls = "sendfile"
+       case "mips64":
+               // TODO: minimize this set once golang.org/issue/18008
+               // is understood.
+               syscalls = "network,file"
        }
 
        var buf bytes.Buffer