mirror of
https://github.com/golang/go.git
synced 2026-04-02 17:30:01 +09:00
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>
This commit is contained in:
committed by
Robert Griesemer
parent
d9a600a73b
commit
9ec1d8f335
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user