aboutsummaryrefslogtreecommitdiffstats
path: root/src/scripts
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-02-21 10:51:14 -0500
committerJack Lloyd <[email protected]>2019-02-21 10:51:14 -0500
commit95249af832950ed6f617cead59a504e47ed57499 (patch)
treebb05790bf859441a413b0b52c65c12cbe014d91e /src/scripts
parentd5be1fbb4ef223c989d2ffd3f26e38be8f0695cd (diff)
Reset the crash count in test fuzzer script
It carried over across all fuzzer types
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/test_fuzzers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scripts/test_fuzzers.py b/src/scripts/test_fuzzers.py
index 75d98abe0..01c202f23 100755
--- a/src/scripts/test_fuzzers.py
+++ b/src/scripts/test_fuzzers.py
@@ -148,6 +148,7 @@ def main(args=None):
duration = time.time() - start
print("Tested fuzzer %s with %d test cases, %d crashes in %.02f seconds" % (
fuzzer, len(corpus_files), crash_count, duration))
+ crash_count = 0
sys.stdout.flush()
else:
for fuzzer in sorted(list(fuzzers_with_corpus)):
@@ -175,6 +176,7 @@ def main(args=None):
print("Tested fuzzer %s with %d test cases, %d crashes in %.02f seconds" % (
fuzzer, len(corpus_files), crash_count, duration))
+ crash_count = 0
if crash_count > 0 or stderr_count > 0 or stdout_count > 0:
print("Ran fuzzer tests, %d crashes %d stdout %d stderr" % (crash_count, stdout_count, stderr_count))