diff options
| author | Guoqi Chen <chenguoqi@loongson.cn> | 2026-03-19 10:48:47 +0800 |
|---|---|---|
| committer | Robert Griesemer <gri@google.com> | 2026-03-19 16:21:04 -0700 |
| commit | 9ec1d8f335bb76a07e9724fb332a4c2572d0fc3b (patch) | |
| tree | 7094b68afcfff01202611851ac7a49d628294587 /src/cmd | |
| parent | d9a600a73bed7b907f7321200650fe5103f47fc9 (diff) | |
| download | go-9ec1d8f335bb76a07e9724fb332a4c2572d0fc3b.tar.xz | |
cmd/compile: skip race detector test failure for unsupported VMA
Fixes #78219
Updates #77597
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>
Diffstat (limited to 'src/cmd')
| -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) + } } } |
