Commit 95bf77bc authored by David Crawshaw's avatar David Crawshaw

runtime: skip tests that need fork on darwin/arm

Change-Id: I1bb0b8b11e8c7686b85657050fd7cf926afe4d29
Reviewed-on: https://go-review.googlesource.com/6200Reviewed-by: default avatarHyang-Ah Hana Kim <hyangah@gmail.com>
parent e7a7352e
...@@ -57,6 +57,7 @@ func TestCgoExternalThreadSIGPROF(t *testing.T) { ...@@ -57,6 +57,7 @@ func TestCgoExternalThreadSIGPROF(t *testing.T) {
case "plan9", "windows": case "plan9", "windows":
t.Skipf("no pthreads on %s", runtime.GOOS) t.Skipf("no pthreads on %s", runtime.GOOS)
case "darwin": case "darwin":
if runtime.GOARCH != "arm" {
// static constructor needs external linking, but we don't support // static constructor needs external linking, but we don't support
// external linking on OS X 10.6. // external linking on OS X 10.6.
out, err := exec.Command("uname", "-r").Output() out, err := exec.Command("uname", "-r").Output()
...@@ -68,6 +69,7 @@ func TestCgoExternalThreadSIGPROF(t *testing.T) { ...@@ -68,6 +69,7 @@ func TestCgoExternalThreadSIGPROF(t *testing.T) {
t.Skipf("no external linking on OS X 10.6") t.Skipf("no external linking on OS X 10.6")
} }
} }
}
if runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" { if runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" {
// TODO(austin) External linking not implemented on // TODO(austin) External linking not implemented on
// ppc64 (issue #8912) // ppc64 (issue #8912)
......
...@@ -41,6 +41,10 @@ func executeTest(t *testing.T, templ string, data interface{}, extra ...string) ...@@ -41,6 +41,10 @@ func executeTest(t *testing.T, templ string, data interface{}, extra ...string)
switch runtime.GOOS { switch runtime.GOOS {
case "android", "nacl": case "android", "nacl":
t.Skipf("skipping on %s", runtime.GOOS) t.Skipf("skipping on %s", runtime.GOOS)
case "darwin":
if runtime.GOARCH == "arm" {
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
}
} }
checkStaleRuntime(t) checkStaleRuntime(t)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment