]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: refactor test constraints for misc/cgo/testsantizers
authorfanzha02 <fannie.zhang@arm.com>
Mon, 1 Mar 2021 02:34:08 +0000 (10:34 +0800)
committerfannie zhang <Fannie.Zhang@arm.com>
Thu, 11 Mar 2021 05:38:13 +0000 (05:38 +0000)
commit3a3b8164fdcb071955284c13cda6ee0f29fc8bd3
tree066f7ce567243f700495812f1d39b3fb7f2d53d3
parent68f3344fe95dde95685b0d7fbbf74d13f3e9ee04
cmd/dist: refactor test constraints for misc/cgo/testsantizers

Currently, the cmd/dist runs test cases in misc/cgo/testsantizers only
when memeory sanitizer is supported, but the tsan tests in
misc/cgo/testsanitizers do not require support for -msan option, which
makes tsan tests can not be run on some unsupported -msan option platforms.

Therefore, this patch moves the test constraints from cmd/dist to
msan_test.go, so that the tsan tests in misc/cgo/testsanitizers
can be run on any system where the C compiler supports -fsanitize=thread
option.

Change-Id: I779c92eedd0270050f1a0b1a69ecce50c3712bc9
Reviewed-on: https://go-review.googlesource.com/c/go/+/297774
Trust: fannie zhang <Fannie.Zhang@arm.com>
Run-TryBot: fannie zhang <Fannie.Zhang@arm.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testsanitizers/cc_test.go
misc/cgo/testsanitizers/cshared_test.go
misc/cgo/testsanitizers/msan_test.go
src/cmd/dist/test.go
src/cmd/internal/sys/supported.go