]> Cypherpunks repositories - gostls13.git/commit
testing: fix invalid error message about argument of TestMain
authorKunpei Sakai <namusyaka@gmail.com>
Mon, 23 Oct 2017 06:27:04 +0000 (15:27 +0900)
committerIan Lance Taylor <iant@golang.org>
Sun, 19 Nov 2017 05:06:59 +0000 (05:06 +0000)
commite4a3043d1d8691bb1fc39a8542e378f713de7aa0
treee4d0bed30b2b71cf022a3b3c8fffed7d45e6cc70
parent50181df8ff680ed8a31290b71b7e8541123660f1
testing: fix invalid error message about argument of TestMain

Also, this commit adds a test for ensuring that TestMain(t *testing.T) is a normal test.

Fixes #22388

Change-Id: Iffcb1db5cdcf34b9c822fcdb58f8926535415177
Reviewed-on: https://go-review.googlesource.com/72591
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/standalone_main_normal_test.go [new file with mode: 0644]
src/cmd/go/testdata/standalone_main_wrong_test.go [new file with mode: 0644]