Skip to content

Commit

Permalink
Fix RELAY script review issues
Browse files Browse the repository at this point in the history
* single file
* make error the default verdict
  • Loading branch information
vesalvojdani committed Nov 2, 2023
1 parent 521ac67 commit dd01627
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions benchexec/tools/relay-sv.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ def name(self):
return "relay-sv"

def cmdline(self, executable, options, task, rlimits):
return [executable, *options, *task.input_files]
return [executable, *options, task.single_input_file]

def determine_result(self, run):
status = result.RESULT_ERROR
if run.output:
if run.output.any_line_contains("Possible race"):
status = result.RESULT_UNKNOWN
elif run.output.any_line_contains("Fatal error"):
status = result.RESULT_ERROR
return result.RESULT_UNKNOWN
elif run.output.any_line_contains("Total Warnings: 0"):
return result.RESULT_TRUE_PROP
else:
status = result.RESULT_TRUE_PROP
return status
return result.RESULT_ERROR

0 comments on commit dd01627

Please sign in to comment.