File: 0003-Skip-TestAsan-on-riscv64.patch

package info (click to toggle)
golang-1.24 1.24.7-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid
  • size: 167,996 kB
  • sloc: asm: 154,904; ansic: 7,009; sh: 2,267; javascript: 1,705; perl: 1,052; python: 421; makefile: 110; cpp: 39; f90: 8; awk: 7; objc: 4
file content (35 lines) | stat: -rw-r--r-- 1,340 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: skip tsan tests on riscv64
 Race detector on riscv64 is not support yet, this is usually no problem on Debian
 building because it will be skipped automatically. But others package updated
 recently lead to the test failed.
Author: Bo YU <vimer@debian.org>
Bug: https://github.com/golang/go/issues/75553
Bug-Debian: https://bugs.debian.org/1112166
Last-Update: 2025-09-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/cmd/cgo/internal/testsanitizers/tsan_test.go
+++ b/src/cmd/cgo/internal/testsanitizers/tsan_test.go
@@ -29,6 +29,10 @@
 	if !compilerRequiredTsanVersion(goos, goarch) {
 		t.Skipf("skipping on %s/%s; compiler version for -tsan option is too old.", goos, goarch)
 	}
+	if goarch == "riscv64" {
+		t.Skipf("skipping TestTSAN test on %s (see https://github.com/golang/go/issues/75553)", goarch)
+	}
+
 
 	t.Parallel()
 	requireOvercommit(t)
--- a/src/cmd/cgo/internal/testsanitizers/cshared_test.go
+++ b/src/cmd/cgo/internal/testsanitizers/cshared_test.go
@@ -65,6 +65,9 @@
 			t.Logf("skipping %s test on %s/%s; compiler version too old for -tsan.", name, GOOS, GOARCH)
 			continue
 		}
+		if GOARCH == "riscv64" {
+			t.Skipf("skipping %s test on %s (see https://github.com/golang/go/issues/75553)", name, GOARCH)
+		}
 
 		t.Run(name, func(t *testing.T) {
 			t.Parallel()