]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: disable flaky Darwin "symbols" test
authorDavid Chase <drchase@google.com>
Mon, 1 Mar 2021 02:48:20 +0000 (21:48 -0500)
committerDavid Chase <drchase@google.com>
Wed, 3 Mar 2021 01:40:22 +0000 (01:40 +0000)
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>
src/cmd/link/dwarf_test.go

index db710bed6ab0621a014e6be58a7cdd0fa93309a6..d0284ad4f560ae258a36372fae0288f071bcf9f2 100644 (file)
@@ -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()