Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
47ee9825
Commit
47ee9825
authored
Mar 07, 2012
by
Shenghou Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/run: use all available cores on ARM system
R=rsc CC=golang-dev
https://golang.org/cl/5753054
parent
881966d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
run.go
test/run.go
+4
-5
No files found.
test/run.go
View file @
47ee9825
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment