From 2641cffd4166ba6991830115efc468dc3f5974ff Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 6 Dec 2016 20:18:26 -0800 Subject: [PATCH] misc/cgo/test: skip test18146 on Darwin It is reported as failing for two people (issues #18202 and #18212). The failure mode is that the system gets overloaded and other programs fail to run. Fixes #18202. Change-Id: I1f1ca1f5d8eed6cc3a9dffac3289851e09fa662b Reviewed-on: https://go-review.googlesource.com/34017 Run-TryBot: Ian Lance Taylor Reviewed-by: Brad Fitzpatrick --- misc/cgo/test/issue18146.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/cgo/test/issue18146.go b/misc/cgo/test/issue18146.go index f3b1f4c1762..37219980f05 100644 --- a/misc/cgo/test/issue18146.go +++ b/misc/cgo/test/issue18146.go @@ -22,6 +22,10 @@ import ( ) func test18146(t *testing.T) { + if runtime.GOOS == "darwin" { + t.Skipf("skipping flaky test on %s; see golang.org/issue/18202", runtime.GOOS) + } + attempts := 1000 threads := 4