Skip to content

Commit aea1259

Browse files
committed
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 <[email protected]> Run-TryBot: David Chase <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Cherry Zhang <[email protected]>
1 parent 312fd99 commit aea1259

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/link/dwarf_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string)
9191
exe = filepath.Join(tmpDir, "go.o")
9292
}
9393

94-
if runtime.GOOS == "darwin" {
94+
darwinSymbolTestIsTooFlaky := true // Turn this off, it is too flaky -- See #32218
95+
if runtime.GOOS == "darwin" && !darwinSymbolTestIsTooFlaky {
9596
if _, err = exec.LookPath("symbols"); err == nil {
9697
// Ensure Apple's tooling can parse our object for symbols.
9798
out, err = exec.Command("symbols", exe).CombinedOutput()

0 commit comments

Comments
 (0)