]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/testsanitizers: determine compiler version for tsan tests on ppc64le
authorLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 24 Aug 2022 17:14:20 +0000 (12:14 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Thu, 25 Aug 2022 11:40:57 +0000 (11:40 +0000)
commitd4ff25ac69c90bb0e6a92aff7650d0bf3d41d29e
tree28276e593d16adc4adf26d6df2590ae96b43cf81
parent8c8429fe4113b399355c11203e60e6b37bc823ba
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>
misc/cgo/testsanitizers/asan_test.go
misc/cgo/testsanitizers/cc_test.go
misc/cgo/testsanitizers/cshared_test.go
misc/cgo/testsanitizers/tsan_test.go