From f01b928aad6a6f35b033a31f495e9a0c2d38770d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Fri, 10 Nov 2017 21:46:41 +0100 Subject: [PATCH] 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 --- src/cmd/go/go_test.go | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.48.1