Commit 7c767fd7 authored by Ian Lance Taylor's avatar Ian Lance Taylor

misc/cgo/testshared: unset GOBIN during test

Fixes #11273.

Change-Id: I409b6c4168711913076439036d65e8639ca3b06f
Reviewed-on: https://go-review.googlesource.com/12073Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 4ef836fa
......@@ -143,6 +143,10 @@ func testMain(m *testing.M) (int, error) {
}
func TestMain(m *testing.M) {
// Some of the tests install binaries into a custom GOPATH.
// That won't work if GOBIN is set.
os.Unsetenv("GOBIN")
flag.Parse()
exitCode, err := testMain(m)
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment