From: Shenghou Ma Date: Wed, 4 Apr 2012 15:14:54 +0000 (+0800) Subject: build: unset GOROOT_FINAL before tests X-Git-Tag: go1.1rc2~3445 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=34ace1043ea17eccc48777144ad6b62d31a00690;p=gostls13.git build: unset GOROOT_FINAL before tests Fix the builders. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5976068 --- diff --git a/src/run.bash b/src/run.bash index c2a52a078e..6619fc1fff 100755 --- a/src/run.bash +++ b/src/run.bash @@ -24,6 +24,11 @@ else echo fi +# we must unset GOROOT_FINAL before tests, because runtime/debug requires +# correct access to source code, so if we have GOROOT_FINAL in effect, +# at least runtime/debug test will fail. +unset GOROOT_FINAL + echo '# Testing packages.' time go test std -short -timeout=120s echo diff --git a/src/run.bat b/src/run.bat index c7a1579728..3bf9e8fc7e 100644 --- a/src/run.bat +++ b/src/run.bat @@ -25,6 +25,11 @@ if errorlevel 1 goto fail echo. :norebuild +:: we must unset GOROOT_FINAL before tests, because runtime/debug requires +:: correct access to source code, so if we have GOROOT_FINAL in effect, +:: at least runtime/debug test will fail. +set GOROOT_FINAL= + echo # Testing packages. go test std -short -timeout=120s if errorlevel 1 goto fail