From: Dmitriy Vyukov Date: Tue, 17 Dec 2013 08:59:13 +0000 (+0400) Subject: race.bat: fix env setup X-Git-Tag: go1.3beta1~1211 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=830f9ac030a99265379fcbff8f40d66f4fa3e669;p=gostls13.git race.bat: fix env setup Currently it fails as: go tool dist: $GOROOT is not set correctly or not exported GOROOT=c:\go c:\go\include\u.h does not exist Fail. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/42550044 --- diff --git a/src/race.bat b/src/race.bat index 0a6aee9e2b..65b76cd61a 100644 --- a/src/race.bat +++ b/src/race.bat @@ -15,6 +15,7 @@ echo race.bat must be run from go\src goto end :ok +set GOROOT=%CD%\.. call make.bat --dist-tool >NUL if errorlevel 1 goto fail .\cmd\dist\dist env -wp >env.bat @@ -35,7 +36,7 @@ go install -race cmd/cgo echo # go install -race std go install -race std if errorlevel 1 goto fail -echo # go test -race -short -std +echo # go test -race -short std go test -race -short std if errorlevel 1 goto fail echo # go test -race -run=nothingplease -bench=.* -benchtime=.1s -cpu=4 std