]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable TestGoroutineParallelism on uniprocessor
authorRuss Cox <rsc@golang.org>
Tue, 21 Jul 2015 00:30:41 +0000 (20:30 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jul 2015 18:53:12 +0000 (18:53 +0000)
It's a bad test and it's worst on uniprocessors.

Fixes #11143.

Change-Id: I0164231ada294788d7eec251a2fc33e02a26c13b
Reviewed-on: https://go-review.googlesource.com/12522
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/proc_test.go

index 4471ee5afbbb752b103150a05db2424ed21f3d46..2be103e3a6b680d3984c7a18746d4031bfa0190d 100644 (file)
@@ -96,6 +96,10 @@ func TestYieldLocked(t *testing.T) {
 }
 
 func TestGoroutineParallelism(t *testing.T) {
+       if runtime.NumCPU() == 1 {
+               // Takes too long, too easy to deadlock, etc.
+               t.Skip("skipping on uniprocessor")
+       }
        P := 4
        N := 10
        if testing.Short() {