Skip to content

Commit

Permalink
cmd/link: disable flaky Darwin "symbols" test
Browse files Browse the repository at this point in the history
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 <[email protected]>
Run-TryBot: David Chase <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Cherry Zhang <[email protected]>
  • Loading branch information
dr2chase committed Mar 3, 2021
1 parent 312fd99 commit aea1259
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/link/dwarf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string)
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 {
// Ensure Apple's tooling can parse our object for symbols.
out, err = exec.Command("symbols", exe).CombinedOutput()
Expand Down

0 comments on commit aea1259

Please sign in to comment.