mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: call flag.Parse from TestMain only if used
These don't use any flags in TestMain itself, so the call is redundant as M.Run will do it. Change-Id: I00f2ac7f846dc2c3ad3535eb8177616b2d900149 Reviewed-on: https://go-review.googlesource.com/33275 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
7ee7936523
commit
68fda1888e
3 changed files with 0 additions and 6 deletions
|
|
@ -21,7 +21,6 @@ import (
|
|||
var tmp, exe string // populated by buildObjdump
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
flag.Parse()
|
||||
if !testenv.HasGoBuild() {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue