mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <bradfitz@golang.org>
This commit is contained in:
parent
58f3a82950
commit
4a4eba9f37
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue