You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem at hand is to determine when you are running under race detector. This is
frequently needed to disable tests, reduce number of iterations or scale timeouts.
See e.g.:
https://golang.org/cl/44180043/diff/60001/src/pkg/runtime/pprof/pprof_test.go
where we have to completely disable the test, while we want to do it only under race
detector.
David noted that this is a more general problem, and proposed to extend it to all build
tags, e.g.:
if runtime.Tag("race") { ... }