aboutsummaryrefslogtreecommitdiff
path: root/src/run.bat
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2012-11-07 23:59:09 +0400
committerDmitriy Vyukov <dvyukov@google.com>2012-11-07 23:59:09 +0400
commit1ebf2d85ba02ff7d3f97e52855166174d71666c2 (patch)
tree040397bc93876c77ab33c13c21cef2991ebe730f /src/run.bat
parentf8614a6645d87777d222f0809cbf1b3f108c3ef5 (diff)
downloadgo-1ebf2d85ba02ff7d3f97e52855166174d71666c2.tar.gz
go-1ebf2d85ba02ff7d3f97e52855166174d71666c2.zip
runtime/race: add Windows support
This is copy of https://golang.org/cl/6810080 but sent from another account (dvyukov@gmail.com is not in CONTRIBUTORS). R=rsc CC=golang-dev https://golang.org/cl/6827060
Diffstat (limited to 'src/run.bat')
-rw-r--r--src/run.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/run.bat b/src/run.bat
index 78c9858be5..275107bf53 100644
--- a/src/run.bat
+++ b/src/run.bat
@@ -52,6 +52,15 @@ go test sync -short -timeout=120s -cpu=10
if errorlevel 1 goto fail
echo.
+if not "%GOHOSTOS%-%GOOS%-%GOARCH%-%CGO_ENABLED%" == "windows-windows-amd64-1" goto norace
+echo # Testing race detector.
+go test -race -i flag
+if errorlevel 1 goto fail
+go test -race -short flag
+if errorlevel 1 goto fail
+echo.
+:norace
+
echo # ..\misc\dashboard\builder ..\misc\goplay
go build ..\misc\dashboard\builder ..\misc\goplay
if errorlevel 1 goto fail