]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: crash if there is no error output
authorKatie Hockman <katie@golang.org>
Wed, 3 Mar 2021 21:00:49 +0000 (16:00 -0500)
committerKatie Hockman <katie@golang.org>
Thu, 4 Mar 2021 14:51:17 +0000 (14:51 +0000)
commit354c77a108863a1ccae810c94453870f0678a828
tree97808301776fa6d7a72895ac9b5145053d10db56
parent621a81aba0fd5fc7ceb297ede3627819fc59728c
[dev.fuzz] internal/fuzz: crash if there is no error output

Previously, the coordintor used the error string encoded by the worker
to determine whether or not a crash occurred. However, failures caused
by things like t.Fail() which have no output will have an empty error
string, so we can't rely on the error string alone to determine if
something is a crasher or not.

Change-Id: Idcf7f6b1210aa1dc4e8dab222642c87919595693
Reviewed-on: https://go-review.googlesource.com/c/go/+/298351
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt
src/internal/fuzz/worker.go