-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 9/10/2008 4:26 PM:
> 
> When I rename my $HOME/.autom4te.cfg to some other filename, the test
> succeeds. When I rename it back, the test fails again.
> 
> The test is apparently assuming that the second autoconf run will produce no
> error messages because of the cache. But I disabled the cache on my machine...

Thanks for the report and analysis.  I'm applying this:

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjIfT4ACgkQ84KuGfSFAYDdMACfedtWJw7dTfDrdKg4mbLkoWtD
fZsAoI2bMxP/YLmM/MHDjiRo4ssISDKQ
=3RwS
-----END PGP SIGNATURE-----
>From 07d484dea6d939d0e5dedf1c3fa5149ad2b46496 Mon Sep 17 00:00:00 2001
From: Eric Blake <[EMAIL PROTECTED]>
Date: Wed, 10 Sep 2008 20:06:05 -0600
Subject: [PATCH] Avoid testsuite bug when autom4te cache is disabled by user.

* tests/tools.at (autoconf: forbidden tokens, basic): Enable
cache, even if user normally disabled it.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <[EMAIL PROTECTED]>
---
 ChangeLog      |    5 +++++
 tests/tools.at |   10 ++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fa0aa49..073efda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-09-10  Eric Blake  <[EMAIL PROTECTED]>
 
+       Avoid testsuite bug when autom4te cache is disabled by user.
+       * tests/tools.at (autoconf: forbidden tokens, basic): Enable
+       cache, even if user normally disabled it.
+       Reported by Bruno Haible.
+
        Avoid testsuite bug in presence of verbose config.site.
        * tests/base.at (Input/Output): Nullify config.site during test.
        Reported by Bob Friesenhahn.
diff --git a/tests/tools.at b/tests/tools.at
index 6285f3d..0123f82 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -347,6 +347,16 @@ _AS_BAR
 [dnl]
 ]])
 
+dnl This test needs autom4te's cache, in spite of any ~/.autom4te.cfg.
+AT_DATA([.autom4te.cfg], [[
+begin-language: "Autoconf"
+args: --cache=autom4te.cache
+end-language: "Autoconf"
+begin-language: "Autoconf-without-aclocal-m4"
+args: --cache=autom4te.cache
+end-language: "Autoconf-without-aclocal-m4"
+]])
+
 AT_CHECK_AUTOCONF([], 1, [],
 [[configure.ac:2: error: possibly undefined macro: m4@&[EMAIL PROTECTED]
       If this token and others are legitimate, please use m4@&[EMAIL PROTECTED]
-- 
1.6.0

Reply via email to