1
0
mirror of https://github.com/golang/go synced 2024-11-19 15:24:46 -07:00
go/src/runtime/race
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
..
testdata
doc.go
output_test.go testing: don't fail all tests after racy test failure 2017-08-15 22:59:26 +00:00
race_darwin_amd64.syso
race_freebsd_amd64.syso
race_linux_amd64.syso
race_linux_test.go
race_test.go
race_unix_test.go
race_windows_amd64.syso
race_windows_test.go
race.go
README
sched_test.go

runtime/race package contains the data race detector runtime library.
It is based on ThreadSanitizer race detector, that is currently a part of
the LLVM project (http://llvm.org/git/compiler-rt.git).

To update the .syso files use golang.org/x/build/cmd/racebuild.

Current runtime is built on rev 68e1532492f9b3fce0e9024f3c31411105965b11.