]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Avoid spurious testsuite failures.
authorEric Blake <eblake@redhat.com>
Wed, 21 Jul 2010 21:57:42 +0000 (15:57 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 21 Jul 2010 22:13:05 +0000 (16:13 -0600)
* doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
'-o -', since the former already implies stdout, while the latter
creates -.exe on cygwin.
* tests/compile.at (AC_LANG_SOURCE example)
(AC_LANG_PROGRAM example): Likewise.  Also prevent any config.site
interference.

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

index e44f78a99c7784c5e31a029ab1f8ce75a46a24c6..d435c19671ae51dac7da6b254254f8dc59469365 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-07-21  Eric Blake  <eblake@redhat.com>
 
+       Avoid spurious testsuite failures.
+       * doc/autoconf.texi (Generating Sources): Don't mix gcc '-E' and
+       '-o -', since the former already implies stdout, while the latter
+       creates -.exe on cygwin.
+       * tests/compile.at (AC_LANG_SOURCE example)
+       (AC_LANG_PROGRAM example): Likewise.  Also prevent any config.site
+       interference.
+
        Partially revert previous patch.
        * lib/autotest/general.m4 (AT_INIT) <serial testing>: Changing
        at_jobs here breaks output if -j2 was requested but shell is
index c3a8714ac436b58aa8a759a9b4f61e0e002aaed0..e510354ef61fcce61503e5d1688288e81f145165 100644 (file)
@@ -8744,7 +8744,7 @@ AC_DEFINE([HELLO_WORLD], ["Hello, World\n"],
 AC_LANG([C])
 AC_LANG_CONFTEST(
    [AC_LANG_SOURCE([[const char hw[] = "Hello, World\n";]])])
-gcc -E -dD -o - conftest.c
+gcc -E -dD conftest.c
 @end example
 
 @noindent
@@ -8789,7 +8789,7 @@ AC_DEFINE([HELLO_WORLD], ["Hello, World\n"],
 AC_LANG_CONFTEST(
 [AC_LANG_PROGRAM([[const char hw[] = "Hello, World\n";]],
                  [[fputs (hw, stdout);]])])
-gcc -E -dD -o - conftest.c
+gcc -E -dD conftest.c
 @end example
 
 @noindent
index e3e4e0760425e44fae73052fb0bceaed4187d397..028f45634f3f68ee463fa0e780c8e7bc889b95b1 100644 (file)
@@ -169,6 +169,11 @@ AT_CLEANUP
 
 AT_SETUP([AC_LANG_SOURCE example])
 
+# Set CONFIG_SITE to a nonexistent file, so that there are
+# no worries about configure output caused by sourcing a config.site.
+CONFIG_SITE=no-such-file
+export CONFIG_SITE
+
 AT_DATA([configure.ac],
 [[# Taken from autoconf.texi:Generating Sources.
 # The only change is to not fail if gcc doesn't work.
@@ -179,7 +184,7 @@ AC_DEFINE([HELLO_WORLD], ["Hello, World\n"],
 AC_LANG([C])
 AC_LANG_CONFTEST(
    [AC_LANG_SOURCE([[const char hw[] = "Hello, World\n";]])])
-gcc -E -dD -o - conftest.c || AS_EXIT([77])
+gcc -E -dD conftest.c || AS_EXIT([77])
 ]])
 
 AT_CHECK_AUTOCONF
@@ -210,6 +215,11 @@ AT_CLEANUP
 
 AT_SETUP([AC_LANG_PROGRAM example])
 
+# Set CONFIG_SITE to a nonexistent file, so that there are
+# no worries about configure output caused by sourcing a config.site.
+CONFIG_SITE=no-such-file
+export CONFIG_SITE
+
 AT_DATA([configure.ac],
 [[# Taken from autoconf.texi:Generating Sources.
 # The only change is to not fail if gcc doesn't work.
@@ -220,7 +230,7 @@ AC_DEFINE([HELLO_WORLD], ["Hello, World\n"],
 AC_LANG_CONFTEST(
 [AC_LANG_PROGRAM([[const char hw[] = "Hello, World\n";]],
                  [[fputs (hw, stdout);]])])
-gcc -E -dD -o - conftest.c || AS_EXIT([77])
+gcc -E -dD conftest.c || AS_EXIT([77])
 ]])
 
 AT_CHECK_AUTOCONF