summaryrefslogtreecommitdiff
path: root/tests/tools.at
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-03-02 07:50:19 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2010-03-02 07:50:19 +0100
commitc5f58b373f349aa9eed8e6d8419cb35981d11735 (patch)
treeb9a21a742ff54a9b6dcc5a92edbadc5a76ea0d29 /tests/tools.at
parent475ccc750cef2b2f8d3f11757d672e9fcc18f0b5 (diff)
downloadautoconf-c5f58b373f349aa9eed8e6d8419cb35981d11735.tar.gz
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. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/tools.at')
-rw-r--r--tests/tools.at3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tools.at b/tests/tools.at
index d8ac0dc5..f3adb116 100644
--- a/tests/tools.at
+++ b/tests/tools.at
@@ -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])