• Hyang-Ah Hana Kim's avatar
    runtime/pprof: fix TestCPUProfileWithFork for GOOS=android. · 39bc7884
    Hyang-Ah Hana Kim authored
    1) Large allocation in this test caused crash. This was not
    detected by builder because builder runs tests with -test.short.
    
    2) The command "go" for forking doesn't exist in some platforms
    including android. This change uses the test binary itself which
    is guaranteed to exist.
    
    This change also adds logging of the total samples collected in
    TestCPUProfileMultithreaded test that is flaky in android-arm
    builder.
    
    Change-Id: I225c6b7877d811edef8b25e7eb00559450640c42
    Reviewed-on: https://go-review.googlesource.com/8131Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    39bc7884
pprof_test.go 12.2 KB