aboutsummaryrefslogtreecommitdiff
path: root/src/internal/fuzz
diff options
context:
space:
mode:
authorKatie Hockman <katie@golang.org>2021-03-04 14:53:18 -0500
committerKatie Hockman <katie@golang.org>2021-03-19 15:16:55 +0000
commit9d4d5ee66dc53f6640dd8f5333df69db4df3b044 (patch)
treede081fdeb1a2f0f60edb4f20f7cb02f52cce8093 /src/internal/fuzz
parent32f45d13b2fa9ef8ae17e885c2d82d80a6d22caa (diff)
downloadgo-9d4d5ee66dc53f6640dd8f5333df69db4df3b044.tar.xz
[dev.fuzz] testing: print logs and error messages when fuzzing
Also improve the error messages for the use of testing.F functions inside the Fuzz function. Change-Id: I5fa48f8c7e0460a1da89a49a73e5af83c544e549 Reviewed-on: https://go-review.googlesource.com/c/go/+/298849 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>
Diffstat (limited to 'src/internal/fuzz')
-rw-r--r--src/internal/fuzz/worker.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/fuzz/worker.go b/src/internal/fuzz/worker.go
index 70d76d6fc6..3fe5aebbf4 100644
--- a/src/internal/fuzz/worker.go
+++ b/src/internal/fuzz/worker.go
@@ -137,7 +137,7 @@ func (w *worker) runFuzzing() error {
mem := <-w.memMu
value := mem.valueCopy()
w.memMu <- mem
- message := fmt.Sprintf("fuzzing process terminated unexpectedly: %v", w.waitErr)
+ message := fmt.Sprintf("fuzzing process terminated unexpectedly: %v\n", w.waitErr)
crasher := crasherEntry{
CorpusEntry: CorpusEntry{Data: value},
errMsg: message,