]> Cypherpunks repositories - gostls13.git/commitdiff
build: crash if test runs forever
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 3 Feb 2012 05:45:51 +0000 (16:45 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 3 Feb 2012 05:45:51 +0000 (16:45 +1100)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5604051

src/run.bash

index f182922864e416432977855c5937c8dab1bb411b..08c1feb18718f2b54bb0823c421a74feee655ca6 100755 (executable)
@@ -38,15 +38,15 @@ fi
 
 echo
 echo '# Package tests'
-time go test std -short
+time go test std -short -timeout=120s
 
 echo
 echo '# runtime -cpu=1,2,4'
-go test runtime -short -cpu=1,2,4
+go test runtime -short -timeout=120s -cpu=1,2,4
 
 echo
 echo '# sync -cpu=10'
-go test sync -short -cpu=10
+go test sync -short -timeout=120s -cpu=10
 
 echo
 echo '# Build bootstrap scripts'