mirror of
https://github.com/golang/go
synced 2024-11-17 03:14:50 -07:00
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>
This commit is contained in:
parent
08025a9d6d
commit
9fe77de3c1
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user