File tree Expand file tree Collapse file tree 8 files changed +33
-7
lines changed
testsuite/tests/gnatcheck Expand file tree Collapse file tree 8 files changed +33
-7
lines changed Original file line number Diff line number Diff line change @@ -1773,6 +1773,15 @@ package body Gnatcheck.Compiler is
1773
1773
Num_Args := @ + 1 ;
1774
1774
Args (Num_Args) := new String'(" --ignore-project-switches" );
1775
1775
end if ;
1776
+ elsif Gnatcheck_Prj.Tree.Is_Defined
1777
+ and then Gnatcheck_Prj.Tree.Root_Project.Path_Name.Exists
1778
+ then
1779
+ -- In case Prj has not been explicitly set, spawn the project option
1780
+ -- with the default project file used by gpr.
1781
+ Num_Args := @ + 1 ;
1782
+ Args (Num_Args) :=
1783
+ new String'
1784
+ (" -P" & Gnatcheck_Prj.Tree.Root_Project.Path_Name.String_Value);
1776
1785
end if ;
1777
1786
1778
1787
if Arg.Aggregated_Project then
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ project Prj is
2
+ for Source_Dirs use ("../.");
3
+
4
+ package Builder is
5
+ for Global_Configuration_Pragmas use "../gnat.adc";
6
+ end Builder;
7
+ end Prj;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ rules_dirs:
5
5
rules :
6
6
- +Rfoo
7
7
tests :
8
- - project : prj.gpr
8
+ - project : project/ prj.gpr
9
9
- input_sources : [main.adb]
10
- - project : prj.gpr
10
+ - project : project/ prj.gpr
11
11
jobs : 2
12
12
- input_sources : [main.adb]
13
13
jobs : 2
Original file line number Diff line number Diff line change
1
+ project P is
2
+ for Source_Dirs use ("src");
3
+ end P;
Original file line number Diff line number Diff line change
1
+ procedure Main is
2
+ begin
3
+ null ;
4
+ end Name ;
Original file line number Diff line number Diff line change
1
+ <gnatcheck_worker_exe> -P<working-dir>/p.gpr --target=x86_64-linux -d --log-file=<working-dir>/gnatcheck-log1.TMP --files-from=<working-dir>/gnatcheck-files1.TMP --rules-from=<working-dir>/gnatcheck-rules0.TMP
Original file line number Diff line number Diff line change
1
+ driver : gnatcheck
2
+ format : brief
3
+ input_sources : [src/main.adb]
4
+ rules :
5
+ - +Rsame_instantiations
6
+ extra_args :
7
+ - -d
You can’t perform that action at this time.
0 commit comments