mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/link: disable flaky Darwin "symbols" test
About one run out of 3 it fails on my laptop, and I am tired of having to be a nanny for my tests just because of this one flaky test. This has been a problem for months. Updates #32218. Change-Id: I2871d4c6f47e9432d189ed7bdcda8f9c0871cfc5 Reviewed-on: https://go-review.googlesource.com/c/go/+/297469 Trust: David Chase <drchase@google.com> Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
312fd9937d
commit
aea1259a72
1 changed files with 2 additions and 1 deletions
|
|
@ -91,7 +91,8 @@ func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string)
|
||||||
exe = filepath.Join(tmpDir, "go.o")
|
exe = filepath.Join(tmpDir, "go.o")
|
||||||
}
|
}
|
||||||
|
|
||||||
if runtime.GOOS == "darwin" {
|
darwinSymbolTestIsTooFlaky := true // Turn this off, it is too flaky -- See #32218
|
||||||
|
if runtime.GOOS == "darwin" && !darwinSymbolTestIsTooFlaky {
|
||||||
if _, err = exec.LookPath("symbols"); err == nil {
|
if _, err = exec.LookPath("symbols"); err == nil {
|
||||||
// Ensure Apple's tooling can parse our object for symbols.
|
// Ensure Apple's tooling can parse our object for symbols.
|
||||||
out, err = exec.Command("symbols", exe).CombinedOutput()
|
out, err = exec.Command("symbols", exe).CombinedOutput()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue