Debian Codegraph @

debian/patches/0003-Skip-TestAsan-on-riscv64.patch

raw
1 From: Bo YU <[email protected]>
2 Date: Fri, 6 Feb 2026 14:04:34 +0100
3 Subject: skip tsan tests on riscv64
4
5 Bug: https://github.com/golang/go/issues/75553
6 Bug-Debian: https://bugs.debian.org/1115478
7 Last-Update: 2025-09-19
8
9 Race detector on riscv64 is not support yet, this is usually no problem on Debian
10 building because it will be skipped automatically. But others package updated
11 recently lead to the test failed.
12 Last-Update: 2025-09-19
13 ---
14 src/cmd/cgo/internal/testsanitizers/cshared_test.go | 3 +++
15 src/cmd/cgo/internal/testsanitizers/tsan_test.go | 4 ++++
16 2 files changed, 7 insertions(+)
17
18 diff --git a/src/cmd/cgo/internal/testsanitizers/cshared_test.go b/src/cmd/cgo/internal/testsanitizers/cshared_test.go
19 index 0cf094e..f42cfd4 100644
20 --- a/src/cmd/cgo/internal/testsanitizers/cshared_test.go
21 +++ b/src/cmd/cgo/internal/testsanitizers/cshared_test.go
22 @@ -65,6 +65,9 @@ func TestShared(t *testing.T) {
23 t.Logf("skipping %s test on %s/%s; compiler version too old for -tsan.", name, GOOS, GOARCH)
24 continue
25 }
26 + if GOARCH == "riscv64" {
27 + t.Skipf("skipping %s test on %s (see https://github.com/golang/go/issues/75553)", name, GOARCH)
28 + }
29
30 t.Run(name, func(t *testing.T) {
31 t.Parallel()
32 diff --git a/src/cmd/cgo/internal/testsanitizers/tsan_test.go b/src/cmd/cgo/internal/testsanitizers/tsan_test.go
33 index 265c5e3..58a1058 100644
34 --- a/src/cmd/cgo/internal/testsanitizers/tsan_test.go
35 +++ b/src/cmd/cgo/internal/testsanitizers/tsan_test.go
36 @@ -29,6 +29,10 @@ func TestTSAN(t *testing.T) {
37 if !compilerRequiredTsanVersion(goos, goarch) {
38 t.Skipf("skipping on %s/%s; compiler version for -tsan option is too old.", goos, goarch)
39 }
40 + if goarch == "riscv64" {
41 + t.Skipf("skipping TestTSAN test on %s (see https://github.com/golang/go/issues/75553)", goarch)
42 + }
43 +
44
45 t.Parallel()
46 requireOvercommit(t)