FAQ
Reviewers: golang-dev_googlegroups.com,

Message:
Hello golang-dev@googlegroups.com,

I'd like you to review this change to
https://code.google.com/p/go


Description:
cmd/go: say how to speed up tests when -race is specified

Please review this at http://codereview.appspot.com/6856096/

Affected files:
M src/cmd/go/test.go


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)

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 26, '12 at 2:44p
activeNov 26, '12 at 8:02p
posts3
users1
websitegolang.org

1 user in discussion

Christian Himpel: 3 posts

People

Translate

site design / logo © 2022 Grokbase