]> Cypherpunks repositories - gostls13.git/commit
testing: add -test.timeout option.
authorIan Lance Taylor <iant@golang.org>
Thu, 31 Mar 2011 22:27:51 +0000 (15:27 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 31 Mar 2011 22:27:51 +0000 (15:27 -0700)
commit554082d6b188cec371f12bebee6f92da0ce7e396
treefc04394f2cba19c2241d3cfd420807e9f725e98b
parent39070313588faf3a11b2a93d9eb81178166a306b
testing: add -test.timeout option.

Since Go code can deadlock, this lets a testsuite driver set a
time limit for the test to run.  This is simple but imperfect,
in that it only catches deadlocks in Go code, not in the
runtime scheduler.

R=r, rsc, iant2
CC=golang-dev
https://golang.org/cl/4326048
src/Make.pkg
src/cmd/gotest/doc.go
src/cmd/gotest/flag.go
src/pkg/testing/testing.go