]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: remove GOROOT write in TestBuildForTvOS
authorDmitri Shuralyov <dmitshur@golang.org>
Fri, 15 Jan 2021 18:19:31 +0000 (13:19 -0500)
committerDmitri Shuralyov <dmitshur@golang.org>
Fri, 15 Jan 2021 21:46:25 +0000 (21:46 +0000)
commit9f83418b83a43029ce8801ef10162dd94fdba81d
tree00f8960f0ea00e08fc8041f277e7cc51570e0ab6
parentec9470162f26819abd7b7bb86dd36cfe87f7f5bc
cmd/link: remove GOROOT write in TestBuildForTvOS

Tests should avoid writing to GOROOT when possible. Such writes
would fail if GOROOT is non-writeable, and it can interfere with
other tests that don't expect GOROOT to change during test execution.

Updates #28387.

Change-Id: I7d72614f218df3375540f5c2f9c9f8c11034f602
Reviewed-on: https://go-review.googlesource.com/c/go/+/284293
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/link/link_test.go