OSDN Git Service

net/http: Ignore sigaltstack when running strace in test.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2012 18:51:53 +0000 (18:51 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2012 18:51:53 +0000 (18:51 +0000)
Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186636 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/go/net/http/fs_test.go

index 5aa93ce..ffba6a7 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