aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2021-06-16 11:10:17 -0700
committerRoland Shoemaker <roland@golang.org>2021-06-23 22:19:47 +0000
commitdf99a270b36fe9f0b8bd43ba05e305fa738d2de6 (patch)
tree308d4a65aa609ac9abec4e16dbe30c2392b9ed47 /src/testing/testing.go
parent3fa42437b5d6326aa1ae04726ad4319459280433 (diff)
downloadgo-df99a270b36fe9f0b8bd43ba05e305fa738d2de6.tar.xz
[dev.fuzz] testing: capture coverage even if tRunner failed
Call SnapshotCoverage when the fuzzFn panics, or t.Fatal(f) is called. We currently don't use this coverage for anything, but it is necessary to allow the coordinator to continue when loading a corpus that contains an input that causes crashes. We will also probably want this behavior once we allow the fuzzer to continue after finding a crasher, since the input used to find one crasher may be a useful input for further mutation. Fixes #46633 Change-Id: I40ed5440c88fa354d90a4ff4ae2bf8a19bf3254f Reviewed-on: https://go-review.googlesource.com/c/go/+/328650 Trust: Roland Shoemaker <roland@golang.org> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Katie Hockman <katie@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/testing/testing.go')
0 files changed, 0 insertions, 0 deletions