From: David du Colombier <0intro@gmail.com> Date: Fri, 10 Nov 2017 20:46:41 +0000 (+0100) Subject: cmd/go: skip TestGoTestJSON on uniprocessor machines X-Git-Tag: go1.10beta1~313 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f01b928aad6a6f35b033a31f495e9a0c2d38770d;p=gostls13.git cmd/go: skip TestGoTestJSON on uniprocessor machines CL 76873 added TestGoTestJSON. However, this test is only succeeding on SMP machines. This change skips TestGoTestJSON on uniprocessor machines. Fixes #22665. Change-Id: I3989d3331fb71193a25a3f0bbb84ff3e1b730890 Reviewed-on: https://go-review.googlesource.com/77130 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index 5e3c2704a6..fb69e5324c 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -5093,6 +5093,9 @@ func TestGoTestMinusN(t *testing.T) { } func TestGoTestJSON(t *testing.T) { + if runtime.NumCPU() == 1 { + t.Skip("skipping on uniprocessor") + } tg := testgo(t) defer tg.cleanup() tg.parallel()