]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
tests: normalize trailing spaces in gcc -E -dD output.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 24 Sep 2010 04:34:39 +0000 (06:34 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 24 Sep 2010 16:31:19 +0000 (10:31 -0600)
* tests/compile.at (AC_LANG_SOURCE example)
(AC_LANG_PROGRAM example): Remove trailing spaces before
comparing with expected output.  Fixes testsuite failure
with GCC 2.95.3 on Haiku.
Report by Scott McCreary.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
tests/compile.at

index 8dba8bfd4eba4d365f9fbfddb510d41d96298539..78590f17f5c537c0e50cbb7f9c03ad9b9617cc7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-09-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       tests: normalize trailing spaces in gcc -E -dD output.
+       * tests/compile.at (AC_LANG_SOURCE example)
+       (AC_LANG_PROGRAM example): Remove trailing spaces before
+       comparing with expected output.  Fixes testsuite failure
+       with GCC 2.95.3 on Haiku.
+       Report by Scott McCreary.
+
 2010-09-22  Eric Blake  <eblake@redhat.com>
 
        Release Version 2.68.
index dd7175b0794d459bf647bf6e44dd202295b0da58..a39a6f19b92ba790617e78a9e1616b31f71dd23c 100644 (file)
@@ -193,7 +193,7 @@ AT_CHECK_CONFIGURE([], [], [stdout])
 # Note that the output may contain more defines and lines matching
 #   # 1 "conftest.c"
 # so delete everything before the interesting output.
-AT_CHECK([sed -n '/#define PACKAGE/,$p' stdout], [],
+AT_CHECK([sed -n 's/ *$//; /#define PACKAGE/,$p' stdout], [],
 [[#define PACKAGE_NAME "Hello"
 #define PACKAGE_TARNAME "hello"
 #define PACKAGE_VERSION "1.0"
@@ -238,7 +238,7 @@ AT_CHECK_CONFIGURE([], [], [stdout])
 # Note that the output may contain more defines and lines matching
 #   # 1 "conftest.c"
 # so delete everything before the interesting output.
-AT_CHECK([sed -n '/#define PACKAGE/,$p' stdout], [],
+AT_CHECK([sed -n 's/ *$//; /#define PACKAGE/,$p' stdout], [],
 [[#define PACKAGE_NAME "Hello"
 #define PACKAGE_TARNAME "hello"
 #define PACKAGE_VERSION "1.0"