]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: deflake test
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 12 Mar 2013 08:52:49 +0000 (12:52 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 12 Mar 2013 08:52:49 +0000 (12:52 +0400)
Update #5005.

R=golang-dev, fullung, bradfitz
CC=golang-dev
https://golang.org/cl/7651045

src/pkg/net/http/fs_test.go

index 0dd6d0df9e94abab0ae205ff689c26e5e648147d..95a55f3e1d5047ebcd5387302437edfbd8871a5d 100644 (file)
@@ -697,7 +697,7 @@ func TestLinuxSendfile(t *testing.T) {
        defer ln.Close()
 
        var buf bytes.Buffer
-       child := exec.Command("strace", "-f", os.Args[0], "-test.run=TestLinuxSendfileChild")
+       child := exec.Command("strace", "-f", "-q", "-e", "trace=sendfile,sendfile64", 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