go/src/cmd/link
Michael Pratt 2c929d6f4c runtime: pass through -asan/-msan/-race to testprog tests
The tests using testprog / testprogcgo are currently not covered on the
asan/msan/race builders because they don't build testprog with the
sanitizer flag.

Explicitly pass the flag if the test itself is built with the sanitizer.

There were a few tests that explicitly passed -race (even on non-race
builders). These tests will now only run on race builders.

For #71395.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-asan-clang15,gotip-linux-amd64-msan-clang15,gotip-linux-amd64-race
Change-Id: I6a6a636ce8271246316a80d426c0e4e2f6ab99c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/643897
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
2025-05-19 11:00:01 -07:00
..
internal runtime: pass through -asan/-msan/-race to testprog tests 2025-05-19 11:00:01 -07:00
testdata cmd/link: choose one with larger size for duplicated BSS symbols 2025-03-28 12:00:23 -07:00
cgo_test.go
doc.go cmd/link/internal/ld: introduce -funcalign=N option 2025-04-03 12:02:03 -07:00
dwarf_test.go cmd/link, go/internal/gccgoimporter: get ar from env by default in tests 2024-10-28 13:39:24 +00:00
elf_test.go cmd/link: only check PIE size difference when the linkmode is the same 2025-03-13 04:22:49 -07:00
link_test.go runtime: pass through -asan/-msan/-race to testprog tests 2025-05-19 11:00:01 -07:00
linkbig_test.go all: fix printf(var) mistakes detected by latest printf checker 2024-09-04 18:16:59 +00:00
main.go
script_test.go cmd: add README generation for compiler + linker script tests 2024-07-31 13:21:20 +00:00