]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix `autom4te cache creation' testsuite failure on FreeBSD.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 2 Mar 2010 06:50:19 +0000 (07:50 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 2 Mar 2010 06:50:19 +0000 (07:50 +0100)
* tests/tools.at (autom4te cache creation): Normalize exit
status of failed redirection to 1, may be 2 with FreeBSD sh.
* THANKS: Update.
Report by Václav Haisman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
tests/tools.at

index 3be2d1cc27e94a637e39c1b6e122f38b482b99e4..9e86d5f3686c30af5624e46468e1b2bb618fa34b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Fix `autom4te cache creation' testsuite failure on FreeBSD.
+       * tests/tools.at (autom4te cache creation): Normalize exit
+       status of failed redirection to 1, may be 2 with FreeBSD sh.
+       * THANKS: Update.
+       Report by Václav Haisman.
+
        Fix Autotest tracing of shell pipelines for FreeBSD sh.
        * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Do not trace
        commands that contain [^|]|[^|], a likely shell pipeline.
diff --git a/THANKS b/THANKS
index 16dd8a317d84b525039bc4b1c3597364b56cda4c..ffa56de3a4eaf5e77a22723a6d05d82d59757bfe 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -388,6 +388,7 @@ Tomohiro Suzuki             ?
 Tony Leneis                 tony@plaza.ds.adp.com
 Toshio Kuratomi             ?
 Uwe Seimet                  us@orbacus.com
+Václav Haisman              v.haisman@sh.cvut.cz
 Vance Shipley               vances@motivity.ca
 Viktor Dukhovni             viktor@anaheim.esm.com
 Ville Karaila               karaila@iki.fi
index d8ac0dc5218cbbcdefbd3f922b786d8b62a7bbd3..f3adb116e72300de2b5a13c401e408f04953a4ac 100644 (file)
@@ -1230,7 +1230,8 @@ end-language: "Autoconf-without-aclocal-m4"
 ]])
 
 # Do not try this when we are root or on systems without permissions.
-AT_CHECK([: > sub/some-file && exit 77], 1, [ignore], [ignore])
+# A failed redirection may cause a status of 2 with FreeBSD sh.
+AT_CHECK([(: > sub/some-file) || exit 1 && exit 77], 1, [ignore], [ignore])
 
 # Failure to create cache directory.
 AT_CHECK_AUTOCONF([], [1], [ignore], [stderr])