]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: do not require a GOROOT/src prefix in tests
authorBryan C. Mills <bcmills@google.com>
Thu, 10 Mar 2022 15:41:54 +0000 (10:41 -0500)
committerBryan Mills <bcmills@google.com>
Wed, 16 Mar 2022 15:20:22 +0000 (15:20 +0000)
commit1a2f72619510f944289587d41fcb86cad9026f7d
tree53581a5d527469e5d0a197b189b234b1528235af
parent5fd0ed7aaf39f783ea6f505a3f2ac7d9da7cb03b
runtime/pprof: do not require a GOROOT/src prefix in tests

When paths are trimmed, the reported file locations begin with the
package import path (not GOROOT/src).

Updates #51461

Change-Id: Idbd408a02e8d03329d10e30b0b08263e69e66285
Reviewed-on: https://go-review.googlesource.com/c/go/+/391812
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/pprof/mprof_test.go
src/runtime/pprof/pprof_test.go