]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Check stderr from
authorPavel Roskin <proski@gnu.org>
Thu, 21 Sep 2000 13:42:49 +0000 (13:42 +0000)
committerPavel Roskin <proski@gnu.org>
Thu, 21 Sep 2000 13:42:49 +0000 (13:42 +0000)
autoconf and autoheader. Expected warnings disabled by "-W none"
Preceding comment removed as no longer relevant.
* tests/semantics.m4 (AC_CHECK_PROG & AC_PATH_PROG): Check
stderr from autoconf.
(AC_PATH_PROG & AC_PATH_PROGS): Likewise.
(AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Likewise.
* tests/tools.m4 (autoheader): Check that autoheader prints
a warning for missing templates. Check stderr from autoconf.
* tests/torture.m4 (config.status under extreme conditions):
Check stderr from autoconf and autoheader.
(command line interface): Check stderr from autoconf.

ChangeLog
tests/atspecific.m4
tests/semantics.m4
tests/tools.m4
tests/torture.m4

index 3a13e1ad0a2d9bf1e59ac28b2ec4eba33d56c565..7c0fda10b04a9860624e29bacafd38a01fa2248c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2000-09-21  Pavel Roskin  <proski@gnu.org>
+
+       * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Check stderr from
+       autoconf and autoheader. Expected warnings disabled by "-W none"
+       Preceding comment removed as no longer relevant.
+       * tests/semantics.m4 (AC_CHECK_PROG & AC_PATH_PROG): Check
+       stderr from autoconf.
+       (AC_PATH_PROG & AC_PATH_PROGS): Likewise.
+       (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): Likewise.
+       * tests/tools.m4 (autoheader): Check that autoheader prints
+       a warning for missing templates. Check stderr from autoconf.
+       * tests/torture.m4 (config.status under extreme conditions):
+       Check stderr from autoconf and autoheader.
+       (command line interface): Check stderr from autoconf.
+
 2000-09-21  Pavel Roskin  <proski@gnu.org>
 
        * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix usage info for
index 7c68006ee58e80cf73828df090065e68369cb436..090312bad30349b1d299ce99637f3cc2eaef486c 100644 (file)
@@ -91,12 +91,8 @@ AC_ENV_SAVE(env-after)
 AC_OUTPUT
 ])
 
-dnl FIXME: Here we just don't consider the stderr from Autoconf.
-dnl Maybe some day we could be more precise and filter out warnings.
-dnl The problem is that currently some warnings are spread on several
-dnl lines, so grepping -v warning is not enough.
-AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([autoconf -W none --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
 AT_CHECK([top_srcdir=$top_srcdir ./configure], 0, ignore, [])
 test -n "$at_verbose" && echo "--- config.log" && cat config.log
 
index 891f3c50c7fa05ad402e0f1c97a704db546bb857..9726b91465af2ef6ef49721f6e858ce238ab36b8 100644 (file)
@@ -251,7 +251,7 @@ test "$TOOL6" = tool || fail=1
 exit $fail
 ]])
 
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
 AT_CHECK([./configure], 0, ignore)
 
 
@@ -283,7 +283,7 @@ test "$TOOL4" = $pwd/path/1/tool || fail=1
 exit $fail
 ]])
 
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
 AT_CHECK([./configure], 0, ignore)
 
 AT_CLEANUP(path config.log config.cache configure)
@@ -393,7 +393,7 @@ esac
 AC_OUTPUT
 ]])
 
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
 
 # Create a header
 AT_CHECK([./configure what_to_test=header], 0, ignore)
index e9f75a70fc5bf6a8889f794516dd09b9bf727949..2a712da767a2d38345929dbac8c71f983eed01c1 100644 (file)
@@ -104,7 +104,9 @@ AC_CONFIG_HEADERS(config.h)
 AC_DEFINE(that, "whatever you want.")
 ]])
 
-AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, ignore, ignore)
+AT_CHECK([../autoheader --autoconf-dir .. -<configure.in], 1, [],
+[autoheader: No template for symbol `that'
+])
 
 
 # 3. Check TOP and BOTTOM.
@@ -146,7 +148,7 @@ Bottom1 from configure.in.
 
 Bottom2 from configure.in.
 /* Bottom from acconfig.h. */
-]], ignore)
+]], [])
 
 
 AT_CLEANUP
@@ -178,7 +180,7 @@ fubar=27
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_COMMANDS([default],[[echo $fubar]],[[fubar=$fubar]])
 AC_OUTPUT
-]], ignore)
+]], [])
 
 AT_CLEANUP
 
index fdcc6e0b1da18bd3a511a4b1659665fb81d9abe2..692fa9adcf4c23c42aa42712eeee340fd3568162 100644 (file)
@@ -75,8 +75,8 @@ m4_for(AT_Count, 1, 100,
 AC_OUTPUT
 ])
 
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
-AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
+AT_CHECK([../autoheader --autoconf-dir .. -l $at_srcdir], 0, [], [])
 AT_CHECK([./configure], 0, ignore)
 
 # Checking that AC_DEFINE worked properly.
@@ -116,7 +116,7 @@ echo "result=$one$enable_two$with_three"
 AC_OUTPUT
 ]])
 
-AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0,, ignore)
+AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
 
 AT_CHECK([./configure one=one --enable-two=two --with-three=three |
           sed -n -e 's/^result=//p'], 0,