]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
The test suite was no longer checking for trailing envvars and files.
authorAkim Demaille <akim@epita.fr>
Thu, 31 Oct 2002 13:57:37 +0000 (13:57 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 31 Oct 2002 13:57:37 +0000 (13:57 +0000)
* tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
(AT_CHECK_ENV): Make sure the `state-ls.before file exists.

ChangeLog
tests/atspecific.m4

index 3a97caa57f2feb5f71936d77c17589c3bce2fd18..5e6e1c6c0e789b6c008b5b4d222c845b3047c2c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-10-31  Akim Demaille  <akim@epita.fr>
+
+       The test suite was no longer checking for trailing envvars and files.
+
+       * tests/atspecific.m4 (AC_STATE_SAVE): Don't use quadrigraphs here.
+       (AT_CHECK_ENV): Make sure the `state-ls.before file exists.
+
 2002-10-31  Akim Demaille  <akim@epita.fr>
 
        * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Use and display
index 7bd5cb05334cff2ef8bdd17f9711982286e0533e..fb7726425fd0e9b42bbad8540dbf994e00331160 100644 (file)
@@ -187,10 +187,9 @@ m4_defun([AC_STATE_SAVE],
       [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' 2>/dev/null |
   # There maybe variables spread on several lines, eg IFS, remove the dead
   # lines.
-  grep '^m4_defn([m4_re_word])=' >state-env.$[@]&t@1
-test $? = 0 || rm -f state-env.$[@]&t@1
-
-ls -1 | sed '/^at-/d;/^state-/d;/^config\./d' | sort >state-ls.$[@]&t@1
+  grep '^m4_defn([m4_re_word])=' >state-env.$][1
+test $? = 0 || rm -f state-env.$][1
+ls -1 | sed '/^at-/d;/^state-/d;/^config\./d' | sort >state-ls.$][1
 ])# AC_STATE_SAVE
 ]])
 
@@ -237,14 +236,16 @@ m4_define([AT_CHECK_CONFIGURE],
 # ------------
 # Check that the full configure run remained in its variable name space,
 # and cleaned up tmp files.
-# me tests might exit prematurely when they find a problem, in
+# Some tests might exit prematurely when they find a problem, in
 # which case `env-after' is probably missing.  Don't check it then.
 m4_define([AT_CHECK_ENV],
-[if test -f state-env.before && test -f state-env.after; then
+[test -f state-ls.before ||
+  AS_ERROR([state-ls.before not present])
+if test -f state-env.before && test -f state-env.after; then
   mv -f state-env.before expout
   AT_CHECK([cat state-env.after], 0, expout)
 fi
-if test -f state-ls.before && test -f state-ls.after; then
+if test -f state-ls.after; then
   mv -f state-ls.before expout
   AT_CHECK([cat state-ls.after], 0, expout)
 fi