Skip to content

Commit

Permalink
Merge branch 'topic/1241' into 'master'
Browse files Browse the repository at this point in the history
nameres: correctly count exception failures during resolution

Closes #1241

See merge request eng/libadalang/libadalang!1521
  • Loading branch information
thvnx committed Feb 12, 2024
2 parents 158ba05 + 8a9a03a commit c41e818
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions testsuite/ada/nameres.adb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ procedure Nameres is
Nb_Successes : Natural := 0;
Nb_Fails : Natural := 0;
Nb_Xfails : Natural := 0;
Nb_Exception_Fails : Natural := 0;
Nb_Total : Natural := 0;
Processing_Time : Duration := 0.0;
Resolution_Speed : Float := 0.0;
Expand Down Expand Up @@ -802,10 +801,6 @@ procedure Nameres is
-- Stats for this file, to be added to ``Job_Data`` at the end if
-- successfully returning.

Nb_File_Fails : Natural := 0;
-- Number of name resolution failures not covered by XFAILs we had in
-- this file.

Config : Config_Record renames Job_Data.Config;

Empty : Boolean := True;
Expand Down Expand Up @@ -1164,8 +1159,7 @@ procedure Nameres is
if XFAIL then
Increment (Stats.Nb_Xfails);
else
Increment (Stats.Nb_Exception_Fails);
Increment (Nb_File_Fails);
Increment (Stats.Nb_Fails);
end if;
end Resolve_Node;

Expand Down

0 comments on commit c41e818

Please sign in to comment.