diff options
| author | Guoqi Chen <chenguoqi@loongson.cn> | 2026-03-19 10:48:47 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-26 07:20:45 -0700 |
| commit | f14d3a8e91ac6d9fa2071f58be4ffb817519a278 (patch) | |
| tree | b81be3adf0586146ebb987c8326739ede1f7a16d | |
| parent | 68f42c591d81b0a142deb24cdb392c1f4253da80 (diff) | |
| download | go-f14d3a8e91ac6d9fa2071f58be4ffb817519a278.tar.xz | |
[release-branch.go1.26] cmd/compile: skip race detector test failure for unsupported VMA
For #77799.
For #78219.
Change-Id: I021df668bfc18081e71faaab2e4bad607873bf4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/756780
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Meidan Li <limeidan@loongson.cn>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
(cherry picked from commit 9ec1d8f335bb76a07e9724fb332a4c2572d0fc3b)
Reviewed-on: https://go-review.googlesource.com/c/go/+/759161
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
| -rw-r--r-- | src/cmd/compile/internal/test/fixedbugs_test.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/test/fixedbugs_test.go b/src/cmd/compile/internal/test/fixedbugs_test.go index 4730a21f34..49d4fbb415 100644 --- a/src/cmd/compile/internal/test/fixedbugs_test.go +++ b/src/cmd/compile/internal/test/fixedbugs_test.go @@ -5,6 +5,7 @@ package test import ( + "bytes" "internal/platform" "internal/testenv" "os" @@ -110,7 +111,13 @@ func TestIssue77597(t *testing.T) { cmd := testenv.Command(t, testenv.GoToolPath(t), "run", "-race", "-gcflags=all=-N -l", src) out, err := cmd.CombinedOutput() if err != nil { - t.Fatalf("program failed: %v\n%s", err, out) + // For details, please refer to CL 160919. + unsupportedVMA := []byte("unsupported VMA range") + if bytes.Contains(out, unsupportedVMA) { + t.Skipf("skipped due to unsupported VMA on %s/%s", runtime.GOOS, runtime.GOARCH) + } else { + t.Fatalf("program failed: %v\n%s", err, out) + } } } |
