diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2015-01-07 11:59:03 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2015-01-07 17:54:59 +0100 |
commit | 7e905534983e138e29c36abdaa3909d40969cc9a (patch) | |
tree | 86377f275a873b04e764cebc137303a1d12019a3 /t/internals.tap | |
parent | 99948e986a210d1e63daa41ca1861620818e4955 (diff) | |
download | automake-7e905534983e138e29c36abdaa3909d40969cc9a.tar.gz |
[ng] tests: fix spurious failure due to non-POSIX shellsng/master
Seen on, e.g., Solaris 10.
* t/internals.tap: Here, by making sure a POSIX shell is used to
run the recipe in the Makefiles running our unit tests.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/internals.tap')
-rw-r--r-- | t/internals.tap | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/internals.tap b/t/internals.tap index eede9748f..cc997c308 100644 --- a/t/internals.tap +++ b/t/internals.tap @@ -37,11 +37,17 @@ T () cd T$i.d { echo 'include ../defn.mk' + # Make sure $(shell ...) invocations use a POSIX shell -- /bin/sh is + # borked and non-POSIX on a few systems, most notably Solaris 10. + # That has already caused spurious failures in the past. + echo "SHELL = ${SHELL}" echo 'lower = abcdefghijklmnopqrstuvwxyz' echo 'upper = ABCDEFGHIJKLMNOPQRSTUVWXYZ' echo 'digits = 0123456789' + # The rest of the makefile come from the standard input passed to this + # function. + cat } > Makefile - cat >> Makefile test_name=$1; shift command_ok_ "$test_name" $MAKE ${1+"$@"} test cd .. |