Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1016)

Unified Diff: src/cmd/go/test.go

Issue 6856096: code review 6856096: cmd/go: say how to speed up tests when -race is specified (Closed)
Patch Set: diff -r f2755950769b https://code.google.com/p/go Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/go/test.go
===================================================================
--- a/src/cmd/go/test.go
+++ b/src/cmd/go/test.go
@@ -379,7 +379,11 @@
if args != "" {
args = " " + args
}
- fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i%s' will speed future tests.\n\n", args)
+ var race string
+ if buildRace {
+ race = " -race"
+ }
+ fmt.Fprintf(os.Stderr, "installing these packages with 'go test -i%s%s' will speed future tests.\n\n", race, args)
}
b.do(root)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b