commit | 60d51dfed16480aef9c21690a1e1767c19dd9393 | [log] [tgz] |
---|---|---|
author | Nicolas Hillegeer <aktau@google.com> | Tue Oct 08 02:17:06 2024 -0700 |
committer | Gopher Robot <gobot@golang.org> | Wed Oct 09 15:52:30 2024 +0000 |
tree | bc32403079979b7bfd5b8771ec5a7fd3bf51dc64 | |
parent | a1f165e1349eb0f5fc9b0c99b44c5a7c2ab93e91 [diff] |
internal/gocore: add sanity checking to TestVersions This strengthens the guarantees about what viewcore(1) supports. Specifically, we have binaries built with PIE which appear to load properly (`Core(...)` doesn't return an error, but return (e.g.) zero goroutines. Tests should fail if this happens, there's always at least one goroutine. The sanity checking functions are defined separately so we can re-use them in a test extension patch where we supply several types of binaries built with non-standard flags (and without the `go build` tool). Change-Id: I492724a7a9d371ce694829368c7dfb73066bb821 Reviewed-on: https://go-review.googlesource.com/c/debug/+/618976 Reviewed-by: Nicolas Hillegeer <aktau@google.com> Auto-Submit: Nicolas Hillegeer <aktau@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Nicolas Hillegeer <aktau@google.com>
This repository holds utilities and libraries for debugging Go programs.
WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the debug repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/debug:” in the subject line, so it is easy to find.