diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-04-13 07:50:00 +0200 |
---|---|---|
committer | Fabian Meumertzheim <fabian@meumertzhe.im> | 2021-04-13 08:18:51 +0200 |
commit | e0e4a9876496a432daab2fd9e7c5b3bc48ca8bbb (patch) | |
tree | 65c216da4f882748e5181864f4a87679063b4680 /bazel | |
parent | 10a743b631cea4566e6f7b39d23611f85526e721 (diff) | |
download | jazzer-api-e0e4a9876496a432daab2fd9e7c5b3bc48ca8bbb.tar.gz |
Fix dump of crashing input on sanitizer report
Also makes the tests look for a crash dump.
Diffstat (limited to 'bazel')
-rwxr-xr-x | bazel/fuzz_target_test_wrapper.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bazel/fuzz_target_test_wrapper.sh b/bazel/fuzz_target_test_wrapper.sh index 061ed3ae..f79809e2 100755 --- a/bazel/fuzz_target_test_wrapper.sh +++ b/bazel/fuzz_target_test_wrapper.sh @@ -22,7 +22,11 @@ eval "$1" -artifact_prefix="$DEFAULT_CRASH_PREFIX/" --reproducer_path="$DEFAULT_ declare -i exit_code=$? if [ $exit_code -eq 77 ] || [ $exit_code -eq 76 ] then - exit 0 + if [ "$(ls "$DEFAULT_CRASH_PREFIX/")" ]; then + exit 0 + else + exit 1 + fi else echo "Unexpected exit code: $exit_code" exit 1 |