]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip TestGoTestJSON on uniprocessor machines
authorDavid du Colombier <0intro@gmail.com>
Fri, 10 Nov 2017 20:46:41 +0000 (21:46 +0100)
committerDavid du Colombier <0intro@gmail.com>
Sat, 11 Nov 2017 06:17:48 +0000 (06:17 +0000)
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 <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/go_test.go

index 5e3c2704a6762de91fb85b99760da6d584c38967..fb69e5324c221b98d5e99ce57381f52298b46062 100644 (file)
@@ -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()