internal/gocore: let android builders skip tests loading cores Fixes golang/go#34210 Change-Id: Iacf6459dbdcd0b36c2601d70bb248a3362192050 Reviewed-on: https://go-review.googlesource.com/c/debug/+/194577 Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com>
diff --git a/internal/gocore/gocore_test.go b/internal/gocore/gocore_test.go index 28d8891..75d0a39 100644 --- a/internal/gocore/gocore_test.go +++ b/internal/gocore/gocore_test.go
@@ -15,6 +15,7 @@ "path" "path/filepath" "reflect" + "runtime" "strings" "testing" @@ -28,6 +29,9 @@ // _ = *(*int)(nil) // } func loadExample(t *testing.T) *Process { + if runtime.GOOS == "android" { + t.Skip("skipping test on android") + } c, err := core.Core("testdata/core", "testdata", "") if err != nil { t.Fatalf("can't load test core file: %s", err)