]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] cmd/go/internal/test: don't set default timeout when fuzzing
authorKatie Hockman <katie@golang.org>
Fri, 23 Apr 2021 18:06:51 +0000 (14:06 -0400)
committerKatie Hockman <katie@golang.org>
Tue, 4 May 2021 17:19:15 +0000 (17:19 +0000)
commitfe8c0e9467d8628138d54951ebb8e166c086c80b
tree37be0b110d5ad2da8865adf18eff62800a77a200
parentdd7529408412ec94a454d8455f7547327ee0d64d
[dev.fuzz] cmd/go/internal/test: don't set default timeout when fuzzing

The -timeout flag is not used when the fuzzing engine
is running, but there was another backup alarm that would
stop the test binary after 11 minutes by default. This
change disables that backup alarm when the -fuzz flag is
set.

Note: unfortunately this means that if someone is running
`go test -fuzz` and a test hangs before the fuzzing engine
starts running, then the backup alarm won't trigger and
the test will run ~forever. I don't think there's a way
around this though, since the backup alarm has no way of
knowing what stage of the test execution we're in (ie.
are we running the unit tests, the seed corpus, or is
it fuzzing).

Fixes #44483

Change-Id: I4e212708a739c9cfc2e138440e27f257bb408c7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/313072
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/test/test.go