Skip to content

Commit fb2079c

Browse files
committed
Test script: use GNATprove 14+ command-line switches as the default
1 parent bc28bc1 commit fb2079c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

frontend/py_modules/code_projects/check_code_block.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -421,17 +421,14 @@ def cleanup_project(language, project_filename, main_file):
421421
or 'ada-report-all' in block.classes:
422422
extra_args = ["--report=all"]
423423

424-
line = None
425-
if block.gnatprove_version[1].startswith("14"):
426-
line = ["gnatprove", "-P", block.spark_project_filename,
427-
"--checks-as-errors=on", "--level=0",
428-
"--function-sandboxing=off", "--output=oneline"]
429-
elif block.gnatprove_version[1].startswith("12"):
424+
# Default switches for GNATprove 14 and above
425+
line = ["gnatprove", "-P", block.spark_project_filename,
426+
"--checks-as-errors=on", "--level=0",
427+
"--function-sandboxing=off", "--output=oneline"]
428+
if block.gnatprove_version[1].startswith("12"):
430429
line = ["gnatprove", "-P", block.spark_project_filename,
431430
"--checks-as-errors", "--level=0",
432431
"--no-axiom-guard", "--output=oneline"]
433-
else:
434-
prove_error = True
435432

436433
line.extend(extra_args)
437434

0 commit comments

Comments
 (0)