mirror of
https://github.com/golang/go
synced 2024-11-19 09:44:46 -07:00
run.bash: add sanity test for race detector
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6612064
This commit is contained in:
parent
76500b14a1
commit
95329d4cd4
@ -46,6 +46,14 @@ echo
|
|||||||
echo '# sync -cpu=10'
|
echo '# sync -cpu=10'
|
||||||
go test sync -short -timeout=120s -cpu=10
|
go test sync -short -timeout=120s -cpu=10
|
||||||
|
|
||||||
|
case "$GOHOSTOS-$GOOS-$GOARCH" in
|
||||||
|
linux-linux-amd64 | darwin-darwin-amd64)
|
||||||
|
echo
|
||||||
|
echo '# Testing race detector.'
|
||||||
|
go test -race -i flag
|
||||||
|
go test -race -short flag
|
||||||
|
esac
|
||||||
|
|
||||||
xcd() {
|
xcd() {
|
||||||
echo
|
echo
|
||||||
echo '#' $1
|
echo '#' $1
|
||||||
|
Loading…
Reference in New Issue
Block a user