go/src/testing
Ian Lance Taylor a1371756c3 testing: don't fail all tests after racy test failure
The code was adding race.Errors to t.raceErrors before checking
Failed, but Failed was using t.raceErrors+race.Errors. We don't want
to change Failed, since that would affect tests themselves, so modify
the harness to not unnecessarily change t.raceErrors.

Updates #19851
Fixes #21338
Change-Id: I7bfdf281f90e045146c92444f1370d55c45221d4
Reviewed-on: https://go-review.googlesource.com/54050
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-08-15 22:59:26 +00:00
..
internal/testdeps testing: print extra labels on benchmarks 2017-02-07 00:08:39 +00:00
iotest
quick doc: mention testing/quick RNG seeding change in Go 1.9 notes 2017-06-27 22:41:49 +00:00
allocs.go
allocs_test.go
benchmark.go testing: revert CL 36791's conditional ReadMemStats 2017-06-30 16:49:29 +00:00
benchmark_test.go
cover.go
example.go cmd/go, testing: indicate when no tests are run 2016-10-19 02:34:44 +00:00
export_test.go
helper_test.go testing: add TB.Helper to better support test helpers 2017-04-14 16:47:25 +00:00
helperfuncs_test.go testing: add TB.Helper to better support test helpers 2017-04-14 16:47:25 +00:00
match.go testing: harmonize handling of prefix-matched benchmarks 2017-06-20 14:19:05 +00:00
match_test.go testing: harmonize handling of prefix-matched benchmarks 2017-06-20 14:19:05 +00:00
sub_test.go testing: always ReadMemStats before first benchmark run 2017-06-28 20:47:26 +00:00
testing.go testing: don't fail all tests after racy test failure 2017-08-15 22:59:26 +00:00
testing_test.go Revert "testing: add T.Context method" 2016-12-09 04:04:11 +00:00