]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: do not require a GOROOT/src prefix in TestStack
authorBryan C. Mills <bcmills@google.com>
Fri, 11 Mar 2022 04:57:57 +0000 (23:57 -0500)
committerBryan Mills <bcmills@google.com>
Thu, 17 Mar 2022 19:24:19 +0000 (19:24 +0000)
commitc6244b59095a74b77c977d250708ba1858ae2388
treeefb1528e5c93f7a3ac98dd27d92a480d6fa9ac9f
parent0fca8a8f25cf4636fd980e72ba0bded4230922de
runtime/debug: do not require a GOROOT/src prefix in TestStack

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

Updates #51461.

Change-Id: Ia6814f970aee11f3d933e75c75136d679d19e220
Reviewed-on: https://go-review.googlesource.com/c/go/+/391815
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/debug/stack_test.go