From: Ian Lance Taylor Date: Wed, 24 Jul 2013 13:09:32 +0000 (+0000) Subject: net/http: Don't try to trace sendfile64 on alpha. X-Git-Tag: releases/gcc-4.9.0~4855 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=017e07a1184c93792a0099b8ec1e242351ebe451;p=thirdparty%2Fgcc.git net/http: Don't try to trace sendfile64 on alpha. From Uros Bizjak. From-SVN: r201206 --- diff --git a/libgo/go/net/http/fs_test.go b/libgo/go/net/http/fs_test.go index 2c3737653b39..d38966764b14 100644 --- a/libgo/go/net/http/fs_test.go +++ b/libgo/go/net/http/fs_test.go @@ -696,8 +696,13 @@ func TestLinuxSendfile(t *testing.T) { } defer ln.Close() + trace := "trace=sendfile" + if runtime.GOARCH != "alpha" { + trace = trace + ",sendfile64" + } + var buf bytes.Buffer - child := exec.Command("strace", "-f", "-q", "-e", "trace=sendfile,sendfile64", os.Args[0], "-test.run=TestLinuxSendfileChild") + child := exec.Command("strace", "-f", "-q", "-e", trace, os.Args[0], "-test.run=TestLinuxSendfileChild") child.ExtraFiles = append(child.ExtraFiles, lnf) child.Env = append([]string{"GO_WANT_HELPER_PROCESS=1"}, os.Environ()...) child.Stdout = &buf