Skip to content

Commit

Permalink
Fix an 'IndexError: list index out of range' in tool-info module for …
Browse files Browse the repository at this point in the history
…WitnessLint
  • Loading branch information
dbeyer committed Dec 9, 2023
1 parent 13a86bb commit 1f61206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchexec/tools/witnesslint.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def determine_result(self, run):
witness_version_match = self.get_value_from_output(
run.output, "Witness Version-Match"
)
if "witnesslint finished" not in run.output[-1] or exit_code == 7:
if len(run.output) == 0 or "witnesslint finished" not in run.output[-1] or exit_code == 7:
return "EXCEPTION"
elif exit_code == 1:
return result.RESULT_ERROR + " (invalid witness syntax)"
Expand Down

0 comments on commit 1f61206

Please sign in to comment.