From ec5b3cb076d515826c92eab4fef2af174fbe1e4a Mon Sep 17 00:00:00 2001 From: Gary Tierney Date: Thu, 3 Jan 2019 01:02:15 +0000 Subject: [PATCH] Exit with failure code if any AFL crashes are found --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6d1591aa..f0f857b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ script: cargo afl build timeout 10m cargo afl fuzz -i ../examples -o out target/debug/secsp-fuzzer > /dev/null || true cat out/fuzzer_stats - grep "unique_crashes *: 0" out/fuzzer_stats + grep "unique_crashes *: 0" out/fuzzer_stats || exit 1 popd else echo "Building pull request, not running AFL."