Skip to content

Commit

Permalink
Corrected the error codes
Browse files Browse the repository at this point in the history
Made the error codes in sync with Proton's error codes and strings, to address Philipp Wendler's review comments, with many thanks.
  • Loading branch information
rmetta authored Nov 2, 2023
1 parent bede804 commit bacb3d3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions benchexec/tools/proton.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,22 @@ def determine_result(self, run):

if result_str == "TRUE":
status = result.RESULT_TRUE_PROP
elif "FALSE" in result_str:
if result_str == "FALSE(termination)":
status = result.RESULT_FALSE_TERMINATION
else:
status = result.RESULT_FALSE_REACH

elif "FALSE(termination)" in result_str:
status = result.RESULT_FALSE_TERMINATION

elif "UNKNOWN" in output:
status = result.RESULT_UNKNOWN

elif "INTERNAL-ERROR" in result_str:
status = "OUT-OF-MEMORY or INTERNAL-ERROR"

elif "INCONCLUSIVE" in result_str:
status = "INCONCLUSIVE"

elif run.exit_code.value == 64 and "Usage error!" in output:
status = "INVALID ARGUMENTS"

elif run.exit_code.value == 6:
status = "OUT-OF-MEMORY or INTERNAL-ERROR"

else:
status = result.RESULT_ERROR

Expand Down

0 comments on commit bacb3d3

Please sign in to comment.