Skip to content

Commit

Permalink
nameres: correctly count exception failures during resolution
Browse files Browse the repository at this point in the history
Exception failures during name resolution were correctly reported by
nameres but they were not correctly counted, and therefore, not
reported when using --stats.
  • Loading branch information
thvnx committed Feb 12, 2024
1 parent 158ba05 commit 8a9a03a
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 8a9a03a

Please sign in to comment.