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

Issue 148770043: code review 148770043: cmd/go, testing: add TestMain support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by rsc
Modified:
9 years, 5 months ago
Reviewers:
r, pcc, bradfitz
CC:
r, josharian, bradfitz, golang-codereviews
Visibility:
Public.

Description

cmd/go, testing: add TestMain support Fixes issue 8202.

Patch Set 1 #

Patch Set 2 : diff -r 9517f108393aa4330a74159c445a5b01079d3add https://code.google.com/p/go/ #

Patch Set 3 : diff -r 9517f108393aa4330a74159c445a5b01079d3add https://code.google.com/p/go/ #

Total comments: 6

Patch Set 4 : diff -r dbccc1324a552e4b774948cfc21e3b6aec0a8786 https://code.google.com/p/go/ #

Patch Set 5 : diff -r dbccc1324a552e4b774948cfc21e3b6aec0a8786 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 80d8c7b85a3472f6615c505c2169835f714fba4a https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -7 lines) Patch
M doc/go1.4.txt View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/go/test.go View 1 2 3 8 chunks +44 lines, -2 lines 0 comments Download
M src/testing/testing.go View 1 2 2 chunks +51 lines, -5 lines 0 comments Download
A src/testing/testing_test.go View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 13
rsc
Hello r (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 7 months ago (2014-09-18 23:39:27 UTC) #1
r
https://codereview.appspot.com/148770043/diff/40001/src/testing/testing.go File src/testing/testing.go (right): https://codereview.appspot.com/148770043/diff/40001/src/testing/testing.go#newcode137 src/testing/testing.go:137: // func TestMain(m *testing.M) { os.Exit(m.Run()) } i don't ...
9 years, 7 months ago (2014-09-19 00:01:42 UTC) #2
rsc
On Thu, Sep 18, 2014 at 8:01 PM, <r@golang.org> wrote: > > https://codereview.appspot.com/148770043/diff/40001/src/testing/testing.go > File ...
9 years, 7 months ago (2014-09-19 00:21:16 UTC) #3
josharian
https://codereview.appspot.com/148770043/diff/40001/src/cmd/go/test.go File src/cmd/go/test.go (right): https://codereview.appspot.com/148770043/diff/40001/src/cmd/go/test.go#newcode1068 src/cmd/go/test.go:1068: len(fn.Type.Params.List[0].Names) > 1 { To be thorough, should check ...
9 years, 7 months ago (2014-09-19 00:58:33 UTC) #4
rsc
https://codereview.appspot.com/148770043/diff/40001/src/cmd/go/test.go File src/cmd/go/test.go (right): https://codereview.appspot.com/148770043/diff/40001/src/cmd/go/test.go#newcode1068 src/cmd/go/test.go:1068: len(fn.Type.Params.List[0].Names) > 1 { On 2014/09/19 00:58:33, josharian wrote: ...
9 years, 7 months ago (2014-09-19 01:17:08 UTC) #5
josharian
Just gave this a whirl, hit a compilation failure (see below). That makes me think ...
9 years, 7 months ago (2014-09-19 01:31:23 UTC) #6
rsc
https://codereview.appspot.com/148770043/diff/40001/src/cmd/go/test.go File src/cmd/go/test.go (right): https://codereview.appspot.com/148770043/diff/40001/src/cmd/go/test.go#newcode1237 src/cmd/go/test.go:1237: "os" On 2014/09/19 01:31:23, josharian wrote: > Only import ...
9 years, 7 months ago (2014-09-19 01:39:53 UTC) #7
r
LGTM i don't like it but during several hours of comcast outage i couldn't think ...
9 years, 7 months ago (2014-09-19 03:16:45 UTC) #8
r
also go1.4.txt On Thu, Sep 18, 2014 at 8:16 PM, <r@golang.org> wrote: > LGTM > ...
9 years, 7 months ago (2014-09-19 03:17:40 UTC) #9
bradfitz
LGTM On Thu, Sep 18, 2014 at 7:39 PM, <rsc@golang.org> wrote: > Reviewers: r, > ...
9 years, 7 months ago (2014-09-19 15:03:27 UTC) #10
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=804cc55d6b47 *** cmd/go, testing: add TestMain support Fixes issue 8202. LGTM=r, bradfitz ...
9 years, 7 months ago (2014-09-19 17:51:13 UTC) #11
pcc
On 2014/09/19 17:51:13, rsc wrote: > *** Submitted as https://code.google.com/p/go/source/detail?r=804cc55d6b47 *** > > cmd/go, testing: ...
9 years, 5 months ago (2014-11-06 16:01:11 UTC) #12
rsc
9 years, 5 months ago (2014-11-06 17:29:01 UTC) #13
I'm sorry about the breakage, but llgo and gccgo should use a go command
built for the same version of Go that they support.


This is the Go 1.4 go command. It expects Go 1.4 underneath it. I don't
want to start supporting all older versions in each go command.

Russ
Sign in to reply to this message.

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