mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime/pprof: check if test can fork
(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>
This commit is contained in:
parent
9fa6a2d42d
commit
2fa64c4182
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue