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