summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-03-05 16:13:33 -0500
committerRuss Cox <rsc@golang.org>2012-03-05 16:13:33 -0500
commit4fafaea617c9093703f37878f9fa3f0078c1f3bc (patch)
treeccf0524141d6b0d28696a216bbc63ea92d60a3be /test/run
parent530527990a50414ac9638f6b7cefc8d54916c03c (diff)
downloadgo-4fafaea617c9093703f37878f9fa3f0078c1f3bc.tar.gz
cmd/gc: if $GOROOT_FINAL is set, rewrite file names in object files
GOROOT_FINAL is a build parameter that means "eventually the Go tree will be installed here". Make the file name information match that eventual location. Fixes issue 3180. R=ken, ken CC=golang-dev http://codereview.appspot.com/5742043
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/run b/test/run
index 8acbc3d45..302578eaa 100755
--- a/test/run
+++ b/test/run
@@ -29,6 +29,8 @@ export GOTRACEBACK=0
export LANG=C
unset GREP_OPTIONS # in case user has a non-standard set
+unset GOROOT_FINAL # breaks ./ imports
+
failed=0
PATH=${GOBIN:-$GOROOT/bin}:`pwd`:/bin:/usr/bin:/usr/local/bin