aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2021-12-08 09:49:04 -0500
committerBryan Mills <bcmills@google.com>2021-12-08 15:30:52 +0000
commit9fe77de3c198848b972915245e41ff26439b08aa (patch)
tree9580da0680f0c31e81fdf83a543113594a74f6b4 /src/debug
parent08025a9d6d7d33f3ac0c78b4d067bdc339225507 (diff)
downloadgo-9fe77de3c198848b972915245e41ff26439b08aa.tar.xz
debug/buildinfo: update test for CL 369977
As a side effect of the changes in cmd/go/internal/work in CL 369977, binaries built in GOPATH mode now include rudimentary build metadata for at least the package path and compiler in use. That seems like a strict improvement, but the test needs to be updated to reflect the newly-available metadata. Change-Id: I657c785e3e9992ed594c9524409f2d076f9eb376 Reviewed-on: https://go-review.googlesource.com/c/go/+/370234 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Russ Cox <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/buildinfo/buildinfo_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/buildinfo/buildinfo_test.go b/src/debug/buildinfo/buildinfo_test.go
index fd31caf135..8346be0109 100644
--- a/src/debug/buildinfo/buildinfo_test.go
+++ b/src/debug/buildinfo/buildinfo_test.go
@@ -177,7 +177,9 @@ func TestReadFile(t *testing.T) {
{
name: "valid_gopath",
build: buildWithGOPATH,
- want: "go\tGOVERSION\n",
+ want: "go\tGOVERSION\n" +
+ "path\texample.com/m\n" +
+ "build\t-compiler=gc\n",
},
{
name: "invalid_gopath",