1
0
mirror of https://github.com/golang/go synced 2024-10-02 20:31:21 -06:00
go/src/runtime/race
Dmitry Vyukov aeecee8ce4 runtime/race: deflake test
The test sometimes fails on builders.
The test uses sleeps to establish the necessary goroutine
execution order. If sleeps undersleep/oversleep
the race is still reported, but it can be reported when the
main test goroutine returns. In such case test driver
can't match the race with the test and reports failure.

Wait for both test goroutines to ensure that the race
is reported in the test scope.

Fixes #15579

Change-Id: I0b9bec0ebfb0c127d83eb5325a7fe19ef9545050
Reviewed-on: https://go-review.googlesource.com/22951
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-09 14:50:18 +00:00
..
testdata runtime/race: deflake test 2016-05-09 14:50:18 +00:00
doc.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
output_test.go runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race_darwin_amd64.syso runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race_freebsd_amd64.syso runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race_linux_amd64.syso runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race_test.go runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race_unix_test.go
race_windows_amd64.syso runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
race.go runtime/race: update two stale references 2015-12-09 18:11:42 +00:00
README runtime: per-P contexts for race detector 2016-05-03 11:00:43 +00:00
sched_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00

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 9d79ea3416bfbe3acac50e47802ee9621bf53254.