Fix for PR other/2539: contrib/test_summary reports wrong version

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Tue Apr 17 19:31:00 GMT 2001


This fixes PR other/2539: contrib/test_summary reports wrong version.  The
test_summary script takes the gcc version from the last .sum file it
processes.  For me this is libstdc++-v3, rather than the compiler.  This is
required on trunk, and will be required on 3.0 branch once it moves to
dejagnu testsuite for libstdc++.

Please excuse line wrapping and apply if OK


2000-04-18  David Billinghurst <David.Billinghurst@riotinto.com>

	* test_summary:  Do not take version from libstdc++-v3.sum

Index: test_summary
===================================================================
RCS file: /cvs/gcc/egcs/contrib/test_summary,v
retrieving revision 1.17
diff -u -r1.17 test_summary
--- test_summary	2000/12/28 19:28:11	1.17
+++ test_summary	2001/04/18 01:43:21
@@ -106,7 +106,7 @@
 /^[ 	]*=== [^ 	]+ tests ===/ {
   if (lang == "") lang = " "$2" "; else lang = " ";
 }
-$2 == "version" { save = $0; $1 = ""; $2 = ""; version = $0; gsub(/^ */,
"", version); gsub(/\r$/, "", version); $0 = save; }
+($2 == "version") && ($1 !~ /libstdc/) { save = $0; $1 = ""; $2 = "";
version = $0; gsub(/^ */, "", version); gsub(/\r$/, "", version); $0 = save;
}
 /\===.*Summary/ { print ""; print; blanks=1; }
 /tests ===/ || /^(Target|Host|Native)/ || $2 == "version" { print;
blanks=1; }
 /^(XPASS|FAIL|# of )/ { print; }



More information about the Gcc-patches mailing list