Commit 537fb06c authored by Hana Kim's avatar Hana Kim Committed by Hyang-Ah Hana Kim

runtime/pprof: skip TestMapping if CGO is not available

The test requires cgo

Change-Id: I1bffee5f187afcf4b7e27516451c56ddfc263a26
Reviewed-on: https://go-review.googlesource.com/118638Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
Reviewed-by: 's avatarAlberto Donizetti <alb.donizetti@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent a1b85ee7
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment