Skip to content
This repository has been archived by the owner on Jan 15, 2023. It is now read-only.

Commit

Permalink
Problem: error message is confusing.
Browse files Browse the repository at this point in the history
Solution: make explicit check and fail.
  • Loading branch information
AlekSi committed Nov 6, 2018
1 parent 5a26050 commit 3877da6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion misc/run_fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ func main() {
}

importPath := "gosh-lang.org/gosh/" + pack
file := filepath.Join("internal", "gofuzz", "workdir", pack+"_fuzz.zip")
workdir := filepath.Join("internal", "gofuzz", "workdir")
file := filepath.Join(workdir, pack+"_fuzz.zip")

if _, err := os.Stat(workdir); err != nil {
log.Fatalf("%s.\nRun tests with `make` to create working directory and initial go-fuzz corpus.", err)
}

run("go", "install", "-v", "-tags", "gofuzz", "./...")
run("go-fuzz-build", "-o="+file, importPath)
Expand Down

0 comments on commit 3877da6

Please sign in to comment.