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.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Ralf Wildenhues 2010-09-24 06:34:39 +02:00 committed by Eric Blake
parent 3c11ae063d
commit 8449314a7a
2 changed files with 11 additions and 2 deletions

View File

@ -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.

View 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"