]> Cypherpunks repositories - gostls13.git/commit
testing: don't fail all tests after racy test failure
authorIan Lance Taylor <iant@golang.org>
Tue, 8 Aug 2017 22:50:43 +0000 (15:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 15 Aug 2017 22:59:26 +0000 (22:59 +0000)
commita1371756c368e4d85cfb84ac8ffc53180aa4d2f2
tree43d47f182a06eeee3b89527df0286e047bcd8237
parenta14a8a3eb99658b6a0856b664cf900c861a2e306
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>
src/runtime/race/output_test.go
src/testing/testing.go