From: Russ Cox Date: Tue, 21 Jul 2015 00:30:41 +0000 (-0400) Subject: runtime: disable TestGoroutineParallelism on uniprocessor X-Git-Tag: go1.5beta3~115 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4a4eba9f37cde100584c7ee07c602d7b80e4e8f9;p=gostls13.git runtime: disable TestGoroutineParallelism on uniprocessor 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 --- diff --git a/src/runtime/proc_test.go b/src/runtime/proc_test.go index 4471ee5afb..2be103e3a6 100644 --- a/src/runtime/proc_test.go +++ b/src/runtime/proc_test.go @@ -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() {