// the Go tree can run a sanity check but not spend time running
// exhaustive tests.
//
-// -timeout t
-// If a test runs longer than t, panic.
+// -timeout d
+// If the cumulative test time for a package runs longer than
+// duration d, panic. Timeout is disabled if set to 0.
// The default is 10 minutes (10m).
//
// -v
the Go tree can run a sanity check but not spend time running
exhaustive tests.
- -timeout t
- If a test runs longer than t, panic.
+ -timeout d
+ If the cumulative test time for a package runs longer than
+ duration d, panic. Timeout is disabled if set to 0.
The default is 10 minutes (10m).
-v
mutexProfile = flag.String("test.mutexprofile", "", "write a mutex contention profile to the named file after execution")
mutexProfileFraction = flag.Int("test.mutexprofilefraction", 1, "if >= 0, calls runtime.SetMutexProfileFraction()")
traceFile = flag.String("test.trace", "", "write an execution trace to `file`")
- timeout = flag.Duration("test.timeout", 0, "fail test binary execution after duration `d` (0 means unlimited)")
+ timeout = flag.Duration("test.timeout", 0, "panic test binary after duration `d` (0 means unlimited)")
cpuListStr = flag.String("test.cpu", "", "comma-separated `list` of cpu counts to run each test with")
parallel = flag.Int("test.parallel", runtime.GOMAXPROCS(0), "run at most `n` tests in parallel")