File tree 4 files changed +20
-1
lines changed
testsuite/tests/gnatcheck_errors/already_existing_lkql_rule_file
4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ begin
557
557
if Is_Regular_File (Default_LKQL_Rule_Options_File) then
558
558
Error
559
559
(" cannot emit the LKQL rule file, "
560
- & Default_LKQL_Rule_Options_File & " already exists" );
560
+ & Default_LKQL_Rule_Options_File & " already exists" );
561
561
OS_Exit (E_Error);
562
562
end if ;
563
563
Original file line number Diff line number Diff line change
1
+ val rules = @{
2
+ redundant_null_statements
3
+ }
Original file line number Diff line number Diff line change
1
+ testsuite_driver: No output file generated by gnatcheck
2
+ gnatcheck: error: no existing file to process
3
+ gnatcheck: error: cannot emit the LKQL rule file, <working-dir>/rules.lkql already exists
4
+ >>>program returned status code 2
5
+ testsuite_driver: Content of rules.lkql
6
+ val rules = @{
7
+ redundant_null_statements
8
+ }
Original file line number Diff line number Diff line change
1
+ driver : gnatcheck
2
+ description : Test the error message when using '--emit-lkql-rule-file' with an already existing rule file
3
+ rules :
4
+ - +RGoto_Statements
5
+ extra_args :
6
+ - --emit-lkql-rule-file
7
+ post_python : " cat('rules.lkql', sort=False)"
8
+ canonicalize_backslashes : True
You can’t perform that action at this time.
0 commit comments