This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
The testsuite creates CR+LF on compiler version lines in test summary files like: /local/build/gcc/testsuite/../g++ version 3.3 <== HERE This confuses some implementations of Mail and thus they send the report as a binary attachment. Results can be seen here: http://gcc.gnu.org/ml/gcc-testresults/2003-05/msg00946.html Release: 3.3, 3.3.1 20030515 (prerelease), 3.4 20030515 (experimental) Environment: Seems to be independent of environment. I have it on all my platforms. Might depend on dejagnu/expect releases. If you can't reproduce, ask for additional information you need. How-To-Repeat: Run the testsuite and inspect one of the summary files.
Fix: Workaround: Place some sed/awk/whatever command into contrib/test_results to filter this rubbish out, but the better way would be to prevent the testsuite from behaving this way, but I do not know dejagnu enough to identify the real problem here.
confirmed on mainline (20030523).
Created an attachment (id=5293) [edit] Fix for this bug As some people feel annoyed about my application/octet-stream testresults, but no one cared to fix this bug, I decided to fix it myself. ;-) This patch does apply to cvs HEAD and 3.3 branch, but will most likely apply to any other branch as well. I think the changes are rather straight forward but if you have doubts/questions about the change feel free to contact me.
and here the test run on darwin7.0.0 http://gcc.gnu.org/ml/gcc-testresults/2003-12/msg00365.html Ready to apply ?
I am applying it :).
Subject: Bug 10819 CVSROOT: /cvs/gcc Module name: gcc Changes by: pinskia@gcc.gnu.org 2003-12-10 20:36:02 Modified files: gcc : ChangeLog gcc/testsuite/lib: g++.exp g77.exp gcc.exp objc.exp Log message: 2003-12-09 Robert Schiele <rschiele@uni-mannheim.de> PR other/10819 * lib/gcc.exp (default_gcc_version): Do not match NL/CR characters to fix Bug 10819. * lib/g++.exp (g++_version): Likewise. * lib/g77.exp (g77_version): Likewise. * lib/objc.exp (default_objc_version): Likewise. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1975&r2=2.1976 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/g++.exp.diff?cvsroot=gcc&r1=1.33&r2=1.34 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/g77.exp.diff?cvsroot=gcc&r1=1.16&r2=1.17 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/gcc.exp.diff?cvsroot=gcc&r1=1.12&r2=1.13 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/objc.exp.diff?cvsroot=gcc&r1=1.19&r2=1.20
Fixed for 3.4.
Subject: Bug 10819 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: pinskia@gcc.gnu.org 2003-12-10 23:38:21 Modified files: gcc/testsuite : ChangeLog gcc/testsuite/lib: g++.exp g77.exp gcc.exp objc.exp Log message: 2003-12-10 Robert Schiele <rschiele@uni-mannheim.de> PR other/10819 * lib/gcc.exp (default_gcc_version): Do not match NL/CR characters to fix Bug 10819. * lib/g++.exp (g++_version): Likewise. * lib/g77.exp (g77_version): Likewise. * lib/objc.exp (default_objc_version): Likewise. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.327&r2=1.2261.2.328 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/g++.exp.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.27&r2=1.27.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/g77.exp.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.15&r2=1.15.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/gcc.exp.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.10&r2=1.10.4.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/objc.exp.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16&r2=1.16.4.1
Fixed also for 3.3.3.
Subject: Bug 10819 CVSROOT: /cvs/gcc Module name: gcc Changes by: schwab@gcc.gnu.org 2004-05-13 14:38:54 Modified files: gcc/testsuite : ChangeLog gcc/testsuite/lib: gfortran.exp Log message: PR other/10819 * lib/gfortran.exp (gfortran_version): Do not match NL/CR characters. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3735&r2=1.3736 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/gfortran.exp.diff?cvsroot=gcc&r1=1.2&r2=1.3