]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
net/http: Don't try to trace sendfile64 on alpha.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Jul 2013 13:09:32 +0000 (13:09 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 24 Jul 2013 13:09:32 +0000 (13:09 +0000)
From Uros Bizjak.

From-SVN: r201206

libgo/go/net/http/fs_test.go

index 2c3737653b39ba072b952e3a41e0a8caa231ca59..d38966764b1457b3793e1e2f9be92ffd86a18655 100644 (file)
@@ -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