]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/compile.at: New test.
authorAkim Demaille <akim@epita.fr>
Tue, 30 Jan 2001 18:45:58 +0000 (18:45 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 30 Jan 2001 18:45:58 +0000 (18:45 +0000)
* tests/atspecific.at (AT_CHECK): When given 77 as expected exit
status, don't include the `skip' mechanism.

ChangeLog
lib/autotest/general.m4
tests/atgeneral.m4
tests/compile.at

index ab403f607016216e8057704f5f48305702f459b7..726bc95f647ad7954e8c9eba6ada4f290af21b57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-30  Akim Demaille  <akim@epita.fr>
+
+       * tests/compile.at: New test.
+       * tests/atspecific.at (AT_CHECK): When given 77 as expected exit
+       status, don't include the `skip' mechanism.
+
 2001-01-30  Akim Demaille  <akim@epita.fr>
 
        * tests/base.at (AC_CACHE_CHECK): Typo and clean up.
index b13b930b06891f43c3cf244ab9123cf8140d59c4..9f0eae7bd43623d62b8270c0723cb964f0495e13 100644 (file)
@@ -526,9 +526,13 @@ m4_case([$3],
         expout, [$at_diff expout at-stdout >&5 || at_failed=:],
         [],     [$at_diff empty  at-stdout >&5 || at_failed=:],
         [echo $at_n "AS_ESCAPE([$3])$at_c" | $at_diff - at-stdout >&5 || at_failed=:])
-dnl Check exit val.
+dnl Check exit val.  Don't `skip' if we are precisely checking $? = 77.
 case $at_status in
-  77) exit 77;;
+m4_case([$2],
+  [77],
+    [],
+    [   77) exit 77;;
+])dnl
 m4_case([$2],
   [ignore],
     [   *);;],
index b13b930b06891f43c3cf244ab9123cf8140d59c4..9f0eae7bd43623d62b8270c0723cb964f0495e13 100644 (file)
@@ -526,9 +526,13 @@ m4_case([$3],
         expout, [$at_diff expout at-stdout >&5 || at_failed=:],
         [],     [$at_diff empty  at-stdout >&5 || at_failed=:],
         [echo $at_n "AS_ESCAPE([$3])$at_c" | $at_diff - at-stdout >&5 || at_failed=:])
-dnl Check exit val.
+dnl Check exit val.  Don't `skip' if we are precisely checking $? = 77.
 case $at_status in
-  77) exit 77;;
+m4_case([$2],
+  [77],
+    [],
+    [   77) exit 77;;
+])dnl
 m4_case([$2],
   [ignore],
     [   *);;],
index 0a6e18b5e811c4ed30e1c259798e7872019acc71..9d03908a07e8e33d2d9aee51b8009d1945cd7e50 100644 (file)
@@ -74,6 +74,29 @@ esac
 ]])
 
 
+
+## -------------------------- ##
+## Broken/missing compilers.  ##
+## -------------------------- ##
+
+
+# Check that Autoconf correctly diagnoses broken compilers, and in
+# particular, if it does not exit 77, the test suite is in trouble...
+# FIXME: Once a precise message decided, check stderr of configure.
+AT_SETUP([Broken/missing compilers])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+CC=no-such-compiler
+AC_PROG_CC
+]])
+
+AT_CHECK_AUTOCONF
+AT_CHECK_CONFIGURE([], 77)
+
+AT_CLEANUP
+
+
 ## ------------ ##
 ## C keywords.  ##
 ## ------------ ##