]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: check if test can fork
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 20 Nov 2015 17:03:07 +0000 (12:03 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 20 Nov 2015 17:52:33 +0000 (17:52 +0000)
(TestStackBarrierProfiling is failing on darwin/arm.)

Change-Id: I8006d6222ccafc213821e02105896440079caa37
Reviewed-on: https://go-review.googlesource.com/17091
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/pprof/pprof_test.go

index 2d8a187f83419d76a57a0bf19db42e58a7dde88d..ce10c219f60e3ea4d02f2cc96d44b0007ec4871d 100644 (file)
@@ -332,6 +332,7 @@ func TestStackBarrierProfiling(t *testing.T) {
        if !strings.Contains(os.Getenv("GODEBUG"), "gcstackbarrierall=1") {
                // Re-execute this test with constant GC and stack
                // barriers at every frame.
+               testenv.MustHaveExec(t)
                cmd := exec.Command(os.Args[0], "-test.run=TestStackBarrierProfiling")
                cmd.Env = append([]string{"GODEBUG=gcstackbarrierall=1", "GOGC=1"}, os.Environ()...)
                if out, err := cmd.CombinedOutput(); err != nil {