]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof/internal/protopprof: skip TestTranslateCPUProfileWithSamples if < 2...
authorMichael Munday <munday@ca.ibm.com>
Tue, 8 Nov 2016 22:11:18 +0000 (17:11 -0500)
committerMichael Munday <munday@ca.ibm.com>
Wed, 9 Nov 2016 18:22:00 +0000 (18:22 +0000)
commit9c2037fbcf1a732f55e29062f3d30ddd21ca36d3
treea2d033da0e546205213bc5b084e6069407df8f83
parent60a9bf9f957d48856839873c6dcb699afe7da359
runtime/pprof/internal/protopprof: skip TestTranslateCPUProfileWithSamples if < 2 mappings

A Go binary may only have 1 executable memory region if it has been
linked using internal linking. This change means that the test will
be skipped if this is the case, rather than fail.

Fixes #17852.

Change-Id: I59459a0f90ae8963aeb9908e5cb9fb64d7d0e0f4
Reviewed-on: https://go-review.googlesource.com/32920
Run-TryBot: Michael Munday <munday@ca.ibm.com>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/runtime/pprof/internal/protopprof/protopprof_test.go