]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable TestNewOSProc0 on android/arm.
authorHyang-Ah Hana Kim <hyangah@gmail.com>
Thu, 23 Apr 2015 17:55:56 +0000 (13:55 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Thu, 23 Apr 2015 19:08:33 +0000 (19:08 +0000)
newosproc0 does not work on android/arm.
See issue #10548.

Change-Id: Ieaf6f5d0b77cddf5bf0b6c89fd12b1c1b8723f9b
Reviewed-on: https://go-review.googlesource.com/9293
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/norace_linux_test.go

index 3f6d4e77e51c3ff1274c7ce9df67c79ae0e29961..fba3b05ffd7005ecc3f05510208aca5a8e6aca00 100644 (file)
@@ -22,6 +22,11 @@ func newOSProcCreated() {
 }
 
 func TestNewOSProc0(t *testing.T) {
+       if runtime.GOOS == "android" && runtime.GOARCH == "arm" {
+               // newosproc0 does not work for android/arm.
+               // See issue 10548.
+               t.Skipf("skipping on %v", runtime.GOOS)
+       }
        runtime.NewOSProc0(0x800000, unsafe.Pointer(runtime.FuncPC(newOSProcCreated)))
        check, end := time.Tick(1*time.Second), time.Tick(5*time.Second)
        for {