aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorDavid Crawshaw <crawshaw@golang.org>2015-04-11 19:00:53 -0400
committerDavid Crawshaw <crawshaw@golang.org>2015-04-13 11:52:05 +0000
commitd6d423b99bb23bef029c7b54b49453c3343cd6a6 (patch)
tree4506ae4108b5f0e00dcfabf9b6be894a213ffdaa /src/runtime
parentc0d48836eced2571222f49d78a27955da49590fb (diff)
downloadgo-d6d423b99bb23bef029c7b54b49453c3343cd6a6.tar.xz
runtime: skip fork test on darwin/arm64
Just like darwin/arm. Change-Id: Ie4998d24b2d891a9f6c8047ec40cd3fdf80622cd Reviewed-on: https://go-review.googlesource.com/8812 Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/crash_cgo_test.go2
-rw-r--r--src/runtime/crash_test.go5
-rw-r--r--src/runtime/runtime_test.go5
3 files changed, 7 insertions, 5 deletions
diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go
index 01ffed93db..6c6576ab90 100644
--- a/src/runtime/crash_cgo_test.go
+++ b/src/runtime/crash_cgo_test.go
@@ -57,7 +57,7 @@ func TestCgoExternalThreadSIGPROF(t *testing.T) {
case "plan9", "windows":
t.Skipf("no pthreads on %s", runtime.GOOS)
case "darwin":
- if runtime.GOARCH != "arm" {
+ if runtime.GOARCH != "arm" && runtime.GOARCH != "arm64" {
// static constructor needs external linking, but we don't support
// external linking on OS X 10.6.
out, err := exec.Command("uname", "-r").Output()
diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go
index 7bb3d28871..975defdb60 100644
--- a/src/runtime/crash_test.go
+++ b/src/runtime/crash_test.go
@@ -42,8 +42,9 @@ func executeTest(t *testing.T, templ string, data interface{}, extra ...string)
case "android", "nacl":
t.Skipf("skipping on %s", runtime.GOOS)
case "darwin":
- if runtime.GOARCH == "arm" {
- t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
+ switch runtime.GOARCH {
+ case "arm", "arm64":
+ t.Skipf("skipping on %s/%s, no fork", runtime.GOOS, runtime.GOARCH)
}
}
diff --git a/src/runtime/runtime_test.go b/src/runtime/runtime_test.go
index 782b936548..d4cccbf084 100644
--- a/src/runtime/runtime_test.go
+++ b/src/runtime/runtime_test.go
@@ -99,8 +99,9 @@ func TestRuntimeGogoBytes(t *testing.T) {
case "android", "nacl":
t.Skipf("skipping on %s", GOOS)
case "darwin":
- if GOARCH == "arm" {
- t.Skipf("skipping on %s/%s", GOOS, GOARCH)
+ switch GOARCH {
+ case "arm", "arm64":
+ t.Skipf("skipping on %s/%s, no fork", GOOS, GOARCH)
}
}