go/misc/cgo/testsanitizers
Lynn Boger d4ff25ac69 misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le
Some tests in misc/cgo/testsanitizers had been disabled on ppc64le
until recently, due to an intermittent error in the tsan tests,
with the goal of trying to understand the failure.

After further investigation, I found that the code for tsan within
gcc does not work consistently when ASLR is enabled on ppc64le. A
fix for that problem was integrated in gcc 9.

This adds a check to testsanitizers to determine the gcc compiler
version on ppc64le and skip the test if the version is too old.

A similar check is needed for asan too.

Updates #54645

Change-Id: I70717d1aa9e967cf1e871566e72b3862b91fea3f
Reviewed-on: https://go-review.googlesource.com/c/go/+/425355
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Archana Ravindar <aravind5@in.ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
2022-08-25 11:40:57 +00:00
..
testdata misc/cgo/testsanitizers: buffer the signal channel in TestTSAN/tsan11 2022-05-27 15:58:52 +00:00
asan_test.go misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le 2022-08-25 11:40:57 +00:00
cc_test.go misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le 2022-08-25 11:40:57 +00:00
cshared_test.go misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le 2022-08-25 11:40:57 +00:00
msan_test.go runtime/cgo: when using msan explicitly unpoison cgoCallers 2021-08-09 14:48:39 +00:00
tsan_test.go misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le 2022-08-25 11:40:57 +00:00