Skip to content

Commit

Permalink
[libfuzzer] Strip artifact prefix from testcase name before processing
Browse files Browse the repository at this point in the history
  • Loading branch information
choller committed May 17, 2019
1 parent 5e5f062 commit 52d8d1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions misc/afl-libfuzzer/afl-libfuzzer-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,12 +1299,13 @@ def warn_local():

# Ignore slow units and oom files
if testcase is not None:
if testcase.startswith("slow-unit-"):
testcase_name = os.path.basename(testcase)
if testcase_name.startswith("slow-unit-"):
continue
if testcase.startswith("oom-"):
if testcase_name.startswith("oom-"):
stats["ooms"] += 1
continue
if testcase.startswith("timeout-"):
if testcase_name.startswith("timeout-"):
stats["timeouts"] += 1
continue

Expand Down

0 comments on commit 52d8d1d

Please sign in to comment.