From ff191dd7268937902e9181495765a61497fcf5ca Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 21 Nov 2016 21:51:01 +0000 Subject: [PATCH] net/http: maybe fix TestLinuxSendfile on mips64 Updates #18008 Change-Id: I8fde0d71d15b416db4d262f6db8ef32a209a192f Reviewed-on: https://go-review.googlesource.com/33426 Reviewed-by: Ian Lance Taylor --- src/net/http/fs_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/http/fs_test.go b/src/net/http/fs_test.go index 910295c180..83f81e3efb 100644 --- a/src/net/http/fs_test.go +++ b/src/net/http/fs_test.go @@ -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 -- 2.50.0