]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/pprof: skip TestMapping if CGO is not available
authorHana Kim <hakim@google.com>
Wed, 13 Jun 2018 17:37:33 +0000 (13:37 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Wed, 13 Jun 2018 18:06:14 +0000 (18:06 +0000)
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>

src/runtime/pprof/proto_test.go

index 9efcaeafe04c4ad06399a55a4968b9938afe13d4..baa23e9330cdb099531fce8b2f5726a12d2b66ab 100644 (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"