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

Issue 5356042: code review 5356042: test: make closedchan.go exit with failure if something... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by iant
Modified:
13 years, 6 months ago
Reviewers:
CC:
golang-dev, rsc, iant2
Visibility:
Public.

Description

test: make closedchan.go exit with failure if something fails

Patch Set 1 #

Patch Set 2 : diff -r ae8e8c32ff4a https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -0 lines) Patch
M test/closedchan.go View 8 chunks +18 lines, -0 lines 0 comments Download

Messages

Total messages: 5
iant
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 6 months ago (2011-11-04 20:34:40 UTC) #1
rsc
LGTM What does gccgo do for some of the printing tests? Is there no equivalent ...
13 years, 6 months ago (2011-11-04 20:41:51 UTC) #2
iant2
Russ Cox <rsc@golang.org> writes: > What does gccgo do for some of the printing tests? ...
13 years, 6 months ago (2011-11-04 21:11:12 UTC) #3
iant
*** Submitted as http://code.google.com/p/go/source/detail?r=84def2047f20 *** test: make closedchan.go exit with failure if something fails R=golang-dev, ...
13 years, 6 months ago (2011-11-04 21:12:39 UTC) #4
rsc
13 years, 6 months ago (2011-11-04 21:41:56 UTC) #5
On Fri, Nov 4, 2011 at 17:11, Ian Lance Taylor <iant@google.com> wrote:
> There is no equivalent to golden.out.  When it comes to actually running
> the test, the gccgo testsuite only looks at the exit status.  It would
> be relatively easy to support some format of "expected output" recorded
> with each individual test, much as we record the way to run the test on
> the first line today.  It would not be easy to support golden.out, as
> the gccgo testsuite runs the tests in parallel.

It's really just a few tests (the ones with output in golden.out)
that matter, but it is probably worth testing the output in those
cases.  There is no other way to test, for example, that defer
of the built-in print function works correctly.

Russ
Sign in to reply to this message.

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