1
0
mirror of https://github.com/golang/go synced 2024-11-17 05:24:53 -07:00
go/misc/cgo
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
..
errors cmd/go: prepend builtin prolog when checking for preamble errors 2022-06-25 19:07:01 +00:00
fortran
gmp all: gofmt main repo 2022-04-11 16:34:30 +00:00
life
nocgo
stdio
test misc/cgo/test: disable setgid tests with musl 2022-08-22 14:48:53 +00:00
testasan
testcarchive misc/cgo/testcarchive: permit SIGQUIT for TestSignalForwardingExternal 2022-08-19 23:07:11 +00:00
testcshared all: disable tests that fail on Alpine 2022-08-02 17:23:42 +00:00
testgodefs cmd/cgo: retain original file paths in godefs generated comment 2022-04-03 07:18:10 +00:00
testplugin cmd/compile: make jump table symbol local 2022-07-22 20:12:19 +00:00
testsanitizers misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le 2022-08-25 11:40:57 +00:00
testshared test: skip -buildmode=pie tests on alpine 2022-08-09 15:13:01 +00:00
testsigfwd
testso
testsovar
testtls