aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/fuzz.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go
index e567f7d9f4..975aa87eab 100644
--- a/src/testing/fuzz.go
+++ b/src/testing/fuzz.go
@@ -34,7 +34,7 @@ var (
// corpusDir is the parent directory of the target's seed corpus within
// the package.
- corpusDir = "testdata/corpus"
+ corpusDir = "testdata/fuzz"
)
// fuzzWorkerExitCode is used as an exit code by fuzz worker processes after an internal error.
@@ -419,7 +419,7 @@ func (f *F) Fuzz(ff interface{}) {
fmt.Fprintf(f.w, "%v\n", err)
if crashErr, ok := err.(fuzzCrashError); ok {
crashName := crashErr.CrashName()
- fmt.Fprintf(f.w, "Crash written to %s\n", filepath.Join("testdata/corpus", f.name, crashName))
+ fmt.Fprintf(f.w, "Crash written to %s\n", filepath.Join(corpusDir, f.name, crashName))
fmt.Fprintf(f.w, "To re-run:\ngo test %s -run=%s/%s\n", f.fuzzContext.importPath(), f.name, crashName)
}
}