aboutsummaryrefslogtreecommitdiff
path: root/src/testing/fuzz.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/fuzz.go')
-rw-r--r--src/testing/fuzz.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go
index 6f985c7c38..01895e8d7d 100644
--- a/src/testing/fuzz.go
+++ b/src/testing/fuzz.go
@@ -87,11 +87,16 @@ func (f *F) Fuzz(ff interface{}) {
}
if err != nil {
t.Fail()
- t.output = []byte(fmt.Sprintf(" panic: %s\n", err))
+ t.output = []byte(fmt.Sprintf(" %s", err))
}
f.setRan()
+ f.inFuzzFn = false
t.signal <- true // signal that the test has finished
}()
+ // TODO(katiehockman, jayconrod): consider replacing inFuzzFn with
+ // general purpose flag that checks whether specific methods can be
+ // called.
+ f.inFuzzFn = true
fn(t, b)
t.finished = true
}