mirror of
https://github.com/golang/go
synced 2024-11-13 18:00:30 -07:00
build: disable race detector test in run.bat on windows
CL 64170043 disabled it in run.bash for Unix systems. I did not realize Windows systems also ran the race detector test. TBR=iant CC=golang-codereviews https://golang.org/cl/64480043
This commit is contained in:
parent
1a3ee6794c
commit
9ed095bc59
@ -57,7 +57,8 @@ go test sync -short -timeout=$(expr 120 \* $timeout_scale)s -cpu=10
|
|||||||
|
|
||||||
# Race detector only supported on Linux and OS X,
|
# Race detector only supported on Linux and OS X,
|
||||||
# and only on amd64, and only when cgo is enabled.
|
# and only on amd64, and only when cgo is enabled.
|
||||||
# Disabled due to golang.org/issue/7334; remove XXX below to reenable.
|
# Disabled due to golang.org/issue/7334; remove XXX below
|
||||||
|
# and in run.bat to reenable.
|
||||||
case "$GOHOSTOS-$GOOS-$GOARCH-$CGO_ENABLED" in
|
case "$GOHOSTOS-$GOOS-$GOARCH-$CGO_ENABLED" in
|
||||||
XXXlinux-linux-amd64-1 | XXXdarwin-darwin-amd64-1)
|
XXXlinux-linux-amd64-1 | XXXdarwin-darwin-amd64-1)
|
||||||
echo
|
echo
|
||||||
|
@ -52,7 +52,11 @@ go test sync -short -timeout=120s -cpu=10
|
|||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
if not "%GOHOSTOS%-%GOOS%-%GOARCH%-%CGO_ENABLED%" == "windows-windows-amd64-1" goto norace
|
# Race detector only supported on Linux and OS X,
|
||||||
|
# and only on amd64, and only when cgo is enabled.
|
||||||
|
# Disabled due to golang.org/issue/7334; remove XXX below
|
||||||
|
# and in run.bash to reenable.
|
||||||
|
if not "%GOHOSTOS%-%GOOS%-%GOARCH%-%CGO_ENABLED%" == "XXXwindows-windows-amd64-1" goto norace
|
||||||
echo # Testing race detector.
|
echo # Testing race detector.
|
||||||
go test -race -i runtime/race flag
|
go test -race -i runtime/race flag
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
|
Loading…
Reference in New Issue
Block a user