diff options
| author | Caleb Spare <cespare@gmail.com> | 2017-04-06 18:47:01 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2017-04-10 14:36:02 +0000 |
| commit | 221541ec8c4ec1b0ed0c6f26f5e13ca128e2a3cd (patch) | |
| tree | f9ab4f43a0153353ddd2d8954a6cc9eab35da05b /src/runtime/race | |
| parent | 87bd0b2f142283ce3ee49d06074728b0ca900819 (diff) | |
| download | go-221541ec8c4ec1b0ed0c6f26f5e13ca128e2a3cd.tar.xz | |
testing: consider a test failed after race errors
Fixes #19851.
Change-Id: I5ee9533406542be7d5418df154f6134139e75892
Reviewed-on: https://go-review.googlesource.com/39890
Run-TryBot: Caleb Spare <cespare@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/race')
| -rw-r--r-- | src/runtime/race/output_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/race/output_test.go b/src/runtime/race/output_test.go index 587540f5e8..e73e6b3bfc 100644 --- a/src/runtime/race/output_test.go +++ b/src/runtime/race/output_test.go @@ -181,10 +181,12 @@ func TestFail(t *testing.T) { }() x = 43 <-done + t.Log(t.Failed()) } `, ` ================== --- FAIL: TestFail \(0...s\) +.*main_test.go:13: true .*testing.go:.*: race detected during execution of test FAIL`}, |
