1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:20:04 -07:00

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 <iant@golang.org>
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Hana Kim 2018-06-13 13:37:33 -04:00 committed by Hyang-Ah Hana Kim
parent a1b85ee754
commit 537fb06c5d

View File

@ -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"