]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] cmd/go: call F.Fuzz from all fuzz script tests
authorJay Conrod <jayconrod@google.com>
Tue, 9 Feb 2021 15:15:02 +0000 (10:15 -0500)
committerJay Conrod <jayconrod@google.com>
Wed, 10 Feb 2021 18:20:35 +0000 (18:20 +0000)
commit6f401df36680526d7e6eabb70ce8c4dd986273ef
tree979f2886df9b43a80ad1c1a8f3c4ed6a65d7d27b
parentb60f79385018b41ccd1d0fb717b0bff99d2d3139
[dev.fuzz] cmd/go: call F.Fuzz from all fuzz script tests

Fuzz targets must call F.Skip, F.Fail, or F.Fuzz. F.Fuzz must not be
called more than once. If a fuzz target panics, calls runtime.Goexit,
or returns normally without calling one of those functions, the target
should panic, and 'go test' should exit with a non-zero status.

For now, this isn't checked. It will be fixed in a follow-up CL.

Change-Id: Ibb905954462b64af15332c285124d78a998f7762
Reviewed-on: https://go-review.googlesource.com/c/go/+/290689
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/cmd/go/testdata/script/test_fuzz.txt
src/cmd/go/testdata/script/test_fuzz_chatty.txt
src/cmd/go/testdata/script/test_fuzz_match.txt