Skip to content

Commit

Permalink
internal/gocore: let android builders skip tests loading cores
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hyangah committed Sep 10, 2019
1 parent 2f33680 commit f175ee5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/gocore/gocore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"path"
"path/filepath"
"reflect"
"runtime"
"strings"
"testing"

Expand All @@ -28,6 +29,9 @@ import (
// _ = *(*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)
Expand Down

0 comments on commit f175ee5

Please sign in to comment.