]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
net/http: Ignore sigaltstack when running strace in test.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 18:51:05 +0000 (18:51 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 18:51:05 +0000 (18:51 +0000)
Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu.

From-SVN: r186635

libgo/go/net/http/fs_test.go

index 5aa93ce58373d7437b79363e6aa5dab2b0666467..ffba6a7bcb79d47ff5b1e2bb2e28a52525cdfb73 100644 (file)
@@ -396,7 +396,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", "-e!sigaltstack", 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