rust-fuzz / honggfuzz-rs

Fuzz your Rust code with Google-developed Honggfuzz !
https://crates.io/crates/honggfuzz
Apache License 2.0
449 stars 40 forks source link

Cleanup output if version mismatch. #4

Closed frewsxcv closed 6 years ago

frewsxcv commented 6 years ago

If there's a version mismatch, this is what is outputted:

process didn't exit successfully: `/Users/corey/dev/targets/fuzzer-honggfuzz/hfuzz_target/release/build/honggfuzz-32eedb7c8be2fdad/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'hongfuzz dependency (0.5.19) and build command (0.5.7) versions do not match', /Users/corey/.cargo/registry/src/github.com-1ecc6299db9ec823/honggfuzz-0.5.19/build.rs:24:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Seems like we can just print the error instead of doing the panic message dance.

PaulGrandperrin commented 6 years ago

Thanks! bors r+

bors[bot] commented 6 years ago

Build succeeded