summaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2012-04-04 23:14:54 +0800
committerShenghou Ma <minux.ma@gmail.com>2012-04-04 23:14:54 +0800
commit9d602bb8579f5f7cc615a0b8f8901fa38bb91e67 (patch)
tree601a856ef63ba93ac20e0cfade7a828911e415c9 /src/run.bat
parent2baf47b6a646a4b7f40602f879b9c66b0c849244 (diff)
downloadgo-9d602bb8579f5f7cc615a0b8f8901fa38bb91e67.tar.gz
build: unset GOROOT_FINAL before tests
Fix the builders. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5976068
Diffstat (limited to 'src/run.bat')
-rw-r--r--src/run.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/run.bat b/src/run.bat
index c7a157972..3bf9e8fc7 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