aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2004-05-13 14:38:53 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2004-05-13 14:38:53 +0000
commitc15190ecef2cdd2ff2df390e2cb5197ea585c9de (patch)
tree17b3633f8cd9a0ae8c5954caa3a0b738a032c282 /gcc
parenteb18fd8d19256c81df749f67010abad0af1615d3 (diff)
downloadgcc-c15190ecef2cdd2ff2df390e2cb5197ea585c9de.zip
gcc-c15190ecef2cdd2ff2df390e2cb5197ea585c9de.tar.gz
gcc-c15190ecef2cdd2ff2df390e2cb5197ea585c9de.tar.bz2
re PR testsuite/10819 (testsuite creates CR+LF on compiler version lines in test summary files)
PR other/10819 * lib/gfortran.exp (gfortran_version): Do not match NL/CR characters. From-SVN: r81784
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/gfortran.exp4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index be4920e..123f82b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-13 Andreas Schwab <schwab@suse.de>
+
+ PR other/10819
+ * lib/gfortran.exp (gfortran_version): Do not match NL/CR
+ characters.
+
2004-05-13 Bud Davis <bdavis9659@comcast.net>
PR fortran/15294
diff --git a/gcc/testsuite/lib/gfortran.exp b/gcc/testsuite/lib/gfortran.exp
index 483c389..27640a5 100644
--- a/gcc/testsuite/lib/gfortran.exp
+++ b/gcc/testsuite/lib/gfortran.exp
@@ -1,4 +1,4 @@
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -50,7 +50,7 @@ proc gfortran_version { } {
set tmp [remote_exec host "$compiler -v"]
set status [lindex $tmp 0];
set output [lindex $tmp 1];
- regexp "version.*$" $output version
+ regexp "version\[^\n\r\]*" $output version
if { $status == 0 && [info exists version] } then {
if [is_remote host] {
clone_output "$compiler $version\n"