aboutsummaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2012-11-15 11:40:10 +1100
committerDave Cheney <dave@cheney.net>2012-11-15 11:40:10 +1100
commit36c4a73fb2aa9f9665c71f563a3e8125c29223e2 (patch)
tree1a627346bb8ae624c07db8f7c7e1abb6d4b5c905 /src/run.bat
parent45b4867d0edabb5f2f8ee07d5f5e9b53f9f4dbe0 (diff)
downloadgo-36c4a73fb2aa9f9665c71f563a3e8125c29223e2.tar.gz
go-36c4a73fb2aa9f9665c71f563a3e8125c29223e2.zip
run.{bash,bat,rc}: unset GOMAXPROCS before ../test
test/run.go already executes tests in parallel where possible. An unknown GOMAXPROCS value during the tests is known to cause failures with tests that measure allocations. ref: https://groups.google.com/d/topic/golang-nuts/tgMhFJ3F5WY/discussion R=fullung, minux.ma, r CC=golang-dev https://golang.org/cl/6847050
Diffstat (limited to 'src/run.bat')
-rw-r--r--src/run.bat7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/run.bat b/src/run.bat
index 275107bf53..3f950f5414 100644
--- a/src/run.bat
+++ b/src/run.bat
@@ -96,15 +96,22 @@ echo.
:: TODO: The other tests in run.bash.
+
+set OLDGOMAXPROCS=%GOMAXPROCS%
+
echo # ..\test
cd ..\test
set FAIL=0
+set GOMAXPROCS=
go run run.go
if errorlevel 1 set FAIL=1
cd ..\src
echo.
if %FAIL%==1 goto fail
+set GOMAXPROCS=%OLDGOMAXPROCS%
+set OLDGOMAXPROCS=
+
echo # Checking API compatibility.
go tool api -c ..\api\go1.txt -next ..\api\next.txt -except ..\api\except.txt
if errorlevel 1 goto fail