]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix and re-enable build_trimpath test
authorJay Conrod <jayconrod@google.com>
Thu, 21 Nov 2019 21:55:11 +0000 (16:55 -0500)
committerJay Conrod <jayconrod@google.com>
Fri, 22 Nov 2019 19:17:28 +0000 (19:17 +0000)
commit8324acadfe682ec72b3dd75e43ee174940817f28
treefade3327d5aaa15da331dad9b05c8d2a2c245ffd
parent941ac9ce706aabc970aa220504a4213fe3abc8a9
cmd/go: fix and re-enable build_trimpath test

The test was comparing a binary built from a list of files to a test
build from a named package. That should not (and did not) work. The
test now compares two binaries built the same way in different
directories.

Also add a portion of the test for GOPATH and fix the gccgo portion of
the test (verified manually).

Fixes #35435

Change-Id: I2535a0011c9d97d2274e5550ae277302dbb91e6f
Reviewed-on: https://go-review.googlesource.com/c/go/+/208234
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/testdata/script/build_trimpath.txt