This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR testsuite/40704: ^M? in testsuite log leads to binary attachment
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 5 Aug 2009 11:46:09 -0700
- Subject: PATCH: PR testsuite/40704: ^M? in testsuite log leads to binary attachment
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
Please see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40704
for details. This patch filters out "\r". OK for trunk?
Thanks.
H.J.
---
2009-08-05 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/40704
* test_summary: Filter out "\r".
--- contrib/test_summary.foo 2009-04-26 08:33:38.000000000 -0700
+++ contrib/test_summary 2009-08-05 11:40:01.000000000 -0700
@@ -131,7 +131,7 @@ configflags == "" {
$2 == "version" { 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|UNRESOLVED|WARNING|ERROR|# of )/ { print; }
+/^(XPASS|FAIL|UNRESOLVED|WARNING|ERROR|# of )/ { sub ("\r", ""); print; }
/^using:/ { print ""; print; print ""; }
# dumpall != 0 && /^X?(PASS|FAIL|UNTESTED)|^testcase/ { dumpall=0; }
# dumpall != 0 { print; }