@@ -536,6 +536,12 @@ package body Test.Skeleton is
536536 -- Returns the list of possible setters for all subprograms called from
537537 -- the body of given subprogram.
538538
539+ function Get_TR_Name_Suffix (Subp : Basic_Decl'Class) return String is
540+ (if Include_Subp_Name then " (" & Get_Subp_FQN (Subp) & " )" else " " );
541+ -- Return the string that either contains the name of the tested subprogram
542+ -- in Subp in parenthesis, or the empty string, based on whether
543+ -- --include-subp-name was passed on the command line.
544+
539545 -- -------
540546 -- "<" --
541547 -- -------
@@ -1553,6 +1559,7 @@ package body Test.Skeleton is
15531559 & Trim (Subp_Span.Start_Line'Img, Both)
15541560 & " :"
15551561 & Trim (Subp_Span.Start_Column'Img, Both)
1562+ & Get_TR_Name_Suffix (Subp.Subp_Declaration.As_Basic_Decl)
15561563 & " instance at "
15571564 & Instance_Sloc.all );
15581565 else
@@ -1562,6 +1569,7 @@ package body Test.Skeleton is
15621569 & Trim (Subp_Span.Start_Line'Img, Both)
15631570 & " :"
15641571 & Trim (Subp_Span.Start_Column'Img, Both)
1572+ & Get_TR_Name_Suffix (Subp.Subp_Declaration.As_Basic_Decl)
15651573 & " :" );
15661574 end if ;
15671575 end ;
@@ -2049,6 +2057,7 @@ package body Test.Skeleton is
20492057 & " :"
20502058 & Trim
20512059 (First_Column_Number (ISub)'Img, Both)
2060+ & Get_TR_Name_Suffix (ISub)
20522061 & " : inherited at "
20532062 & Base_Name (Type_Dec.Unit.Get_Filename)
20542063 & " :"
@@ -2200,6 +2209,7 @@ package body Test.Skeleton is
22002209 & Trim
22012210 (First_Column_Number (OSub)'Img,
22022211 Both)
2212+ & Get_TR_Name_Suffix (OSub)
22032213 & " : overridden at "
22042214 & Base_Name
22052215 (TR_W.Original_Type.Unit.Get_Filename)
@@ -3595,6 +3605,7 @@ package body Test.Skeleton is
35953605 & Trim (First_Line_Number (TC.Elem)'Img, Both)
35963606 & " :"
35973607 & Trim (First_Column_Number (TC.Elem)'Img, Both)
3608+ & (if Include_Subp_Name then " (" & TC.Name.all & " )" else " " )
35983609 & " :" );
35993610 else
36003611 TR_Info_Add.TR_Info.Tested_Sloc := new String'
@@ -3603,6 +3614,7 @@ package body Test.Skeleton is
36033614 & Trim (First_Line_Number (TC.Elem)'Img, Both)
36043615 & " :"
36053616 & Trim (First_Column_Number (TC.Elem)'Img, Both)
3617+ & (if Include_Subp_Name then " (" & TC.Name.all & " )" else " " )
36063618 & " instance at "
36073619 & Instance_Sloc);
36083620 end if ;
0 commit comments