From 537fb06c5dabfc5329bd8535c63d6a0f1ccbb1b4 Mon Sep 17 00:00:00 2001 From: Hana Kim Date: Wed, 13 Jun 2018 13:37:33 -0400 Subject: [PATCH] runtime/pprof: skip TestMapping if CGO is not available The test requires cgo Change-Id: I1bffee5f187afcf4b7e27516451c56ddfc263a26 Reviewed-on: https://go-review.googlesource.com/118638 Reviewed-by: Ian Lance Taylor Reviewed-by: Alberto Donizetti Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/runtime/pprof/proto_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/pprof/proto_test.go b/src/runtime/pprof/proto_test.go index 9efcaeafe04..baa23e9330c 100644 --- a/src/runtime/pprof/proto_test.go +++ b/src/runtime/pprof/proto_test.go @@ -238,6 +238,7 @@ func TestProcSelfMaps(t *testing.T) { // that the runtime can't symbolize. See ./testdata/mappingtest. func TestMapping(t *testing.T) { testenv.MustHaveGoRun(t) + testenv.MustHaveCGO(t) prog := "./testdata/mappingtest"