From b91b694b37b12724ae3c3925eb9a215ac9b36271 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Tue, 7 Mar 2017 20:04:23 +0100 Subject: [PATCH] runtime/pprof: fix the protobuf tests on Android Change-Id: I5f85a7980b9a18d3641c4ee8b0992671a8421bb0 Reviewed-on: https://go-review.googlesource.com/37896 Run-TryBot: Elias Naur Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/runtime/pprof/proto_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/pprof/proto_test.go b/src/runtime/pprof/proto_test.go index aa2d03b449..98f217583b 100644 --- a/src/runtime/pprof/proto_test.go +++ b/src/runtime/pprof/proto_test.go @@ -70,7 +70,7 @@ func f2() { f2() } // testPCs returns two PCs and two corresponding memory mappings // to use in test profiles. func testPCs(t *testing.T) (addr1, addr2 uint64, map1, map2 *profile.Mapping) { - if runtime.GOOS == "linux" { + if runtime.GOOS == "linux" || runtime.GOOS == "android" { // Figure out two addresses from /proc/self/maps. mmap, err := ioutil.ReadFile("/proc/self/maps") if err != nil { -- 2.48.1