From: Ian Lance Taylor Date: Wed, 7 Dec 2016 04:18:26 +0000 (-0800) Subject: misc/cgo/test: skip test18146 on Darwin X-Git-Tag: go1.8beta2~77 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2641cffd4166ba6991830115efc468dc3f5974ff;p=gostls13.git 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 --- diff --git a/misc/cgo/test/issue18146.go b/misc/cgo/test/issue18146.go index f3b1f4c176..37219980f0 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