FAQ

On 2012/10/07 18:25:45, dvyukov wrote:
What do you think about high-level organisation?
All test files except race_test.go are +build ignore.
race_test.go executes 'go test -race -v all_other_test_files', and
parses the
output.
For tests starting with func TestRaceXXX it expects a race to be
detected. For
tests starting with func TestNoRaceXXX it expects no race to be detected.
Then prints summary along the lines of:
NoRaceFin .
RaceFin FAILED
NoRaceCgoSync .
NoRaceIOFile .
NoRaceIOHttp .
Passed 209 of 229 tests (91.27%, 0+, 20-).
0+ means 0 false positives.
20- means 20 false negatives.
I think I need to add "expected failures" to be able to run it on
buildbot.

I've added the ability to mark "expected to fail" tests. Now this test
can pass even with some not-yet-implemented race detector features. I.e.
it does not fail go test -race std.
PTAL

https://codereview.appspot.com/6525052/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedNov 8, '12 at 4:04p
activeNov 8, '12 at 4:04p
posts1
users1
websitegolang.org

1 user in discussion

Dvyukov: 1 post

People

Translate

site design / logo © 2021 Grokbase