cmd/go: go test -race -covermode=set
panics
#20435
Labels
Milestone
go test -race -covermode=set
panics
#20435
What version of Go are you using (
go version
)?tip (go version devel +15aa04d200 Fri May 19 20:15:10 2017 +0000 linux/amd64) and 1.8.1
What operating system and processor architecture are you using (
go env
)?What did you do?
Run
go test -race -covermode=set
on my code.Please note that
go test -race
runs without error on my code.What did you expect to see?
go test
documentation specifies for-covermode
:The
go test
command should return an error if-race
is used with-covermode=set
.Or it could also automatically set to
atomic
What did you see instead?
It panics. (counters increment I presume)
The text was updated successfully, but these errors were encountered: