From: Hana Kim Date: Wed, 13 Jun 2018 17:37:33 +0000 (-0400) Subject: runtime/pprof: skip TestMapping if CGO is not available X-Git-Tag: go1.11beta1~116 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=537fb06c5dabfc5329bd8535c63d6a0f1ccbb1b4;p=gostls13.git 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 --- diff --git a/src/runtime/pprof/proto_test.go b/src/runtime/pprof/proto_test.go index 9efcaeafe0..baa23e9330 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"