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

Issue 107280043: code review 107280043: testing: add testing.Race to allow authors to reduce th... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by dave
Modified:
9 years, 10 months ago
Reviewers:
r, rsc, dvyukov, r2
CC:
golang-codereviews
Visibility:
Public.

Description

testing: add testing.Race to allow authors to reduce the scope of their tests under the race runtime Fixes issue 7706. Discussion: This CL adds a new function, testing.Race to the testing package. The author of issue 7706 original requested that something similar be added to the runtime/race package however I feel this approach is more convenient for the following reasons: * The use case in issue 7706 spoke of reducing or skipping tests when run under the race enabled runtime. Adding the helper method to the testing package rather than the runtime/race package means authors don't need to import an additional package. * The use of this function is similar to the existing testing.Short function, an example usage might be: if testing.Short() || testing.Race() { t.Skip("skipping expensive test") }

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -0 lines) Patch
M doc/go1.4.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/testing/norace.go View 1 1 chunk +9 lines, -0 lines 0 comments Download
A src/pkg/testing/norace_test.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
A src/pkg/testing/race.go View 1 1 chunk +9 lines, -0 lines 0 comments Download
A src/pkg/testing/race_test.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/testing/testing.go View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11
dave_cheney.net
Hello rsc@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
9 years, 10 months ago (2014-06-21 05:37:25 UTC) #1
dvyukov
in the first line of description: Russ says to not add () after function names; ...
9 years, 10 months ago (2014-06-21 16:17:01 UTC) #2
dvyukov
LGTM to me, but obviously wait for rsc/r
9 years, 10 months ago (2014-06-21 16:17:55 UTC) #3
dave_cheney.net
Hello rsc@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 10 months ago (2014-06-22 07:47:30 UTC) #4
r2
NOT LGTM testing.Short is used to make a test suite run fast enough on small ...
9 years, 10 months ago (2014-06-26 14:32:11 UTC) #5
rsc
I am very uncomfortable with this. I think it sends the wrong message. Tests shouldn't ...
9 years, 10 months ago (2014-06-26 14:47:49 UTC) #6
r
I sent a long review to the CL, but it hasn't shown up in this ...
9 years, 10 months ago (2014-06-26 15:12:47 UTC) #7
rsc
testing
9 years, 10 months ago (2014-06-26 15:32:28 UTC) #8
rsc
testing 2
9 years, 10 months ago (2014-06-26 15:41:02 UTC) #9
rsc
testing 3
9 years, 10 months ago (2014-06-26 15:47:20 UTC) #10
dave_cheney.net
9 years, 10 months ago (2014-07-01 05:31:52 UTC) #11
*** Abandoned ***
Sign in to reply to this message.

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