diff options
| author | Hana Kim <hakim@google.com> | 2018-06-13 13:37:33 -0400 |
|---|---|---|
| committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | 2018-06-13 18:06:14 +0000 |
| commit | 537fb06c5dabfc5329bd8535c63d6a0f1ccbb1b4 (patch) | |
| tree | 9cf789c94ac7387a1b85cf00fe4c0e2cd1e94869 /src/runtime | |
| parent | a1b85ee754f84899b1bd7460c0a51630541dc3da (diff) | |
| download | go-537fb06c5dabfc5329bd8535c63d6a0f1ccbb1b4.tar.xz | |
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>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/pprof/proto_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
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" |
