]> Cypherpunks repositories - gostls13.git/commitdiff
test/run: use all available cores on ARM system
authorShenghou Ma <minux.ma@gmail.com>
Wed, 7 Mar 2012 04:43:25 +0000 (12:43 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Wed, 7 Mar 2012 04:43:25 +0000 (12:43 +0800)
R=rsc
CC=golang-dev
https://golang.org/cl/5753054

test/run.go

index f0b2555db07d6f8d336889d070a7697cbf7d090f..593e4ade64d992bcc1139424e82a49ccc7780221 100644 (file)
@@ -30,7 +30,7 @@ import (
 
 var (
        verbose     = flag.Bool("v", false, "verbose. if set, parallelism is set to 1.")
-       numParallel = flag.Int("n", 2*runtime.NumCPU(), "number of parallel tests to run")
+       numParallel = flag.Int("n", runtime.NumCPU(), "number of parallel tests to run")
        summary     = flag.Bool("summary", false, "show summary of results")
        showSkips   = flag.Bool("show_skips", false, "show skipped tests")
 )
@@ -60,10 +60,9 @@ const maxTests = 5000
 
 func main() {
        flag.Parse()
-       
-       // Disable parallelism if printing, or if running on
-       // (presumably underpowered) arm systems.
-       if *verbose || runtime.GOARCH == "arm" {
+
+       // Disable parallelism if printing
+       if *verbose {
                *numParallel = 1
        }