* tests/self-check-reexec.test: Ensure that the non-bash shells we look do really exists. Since we are at it, also try the name `ash', non `dash', for the Almquist Shell, for Cygwin 1.5. --- ChangeLog | 7 +++++++ tests/self-check-reexec.test | 3 ++- 2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog index c1d9365..1142bc6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-09-07 Stefano Lattarini <stefano.lattar...@gmail.com> + + self tests: fix spurious failures when /bin/ksh do not exists + * tests/self-check-reexec.test: Ensure that the non-bash shells + we look do really exists. Since we are at it, also try the name + `ash', non `dash', for the Almquist Shell, for Cygwin 1.5. + 2011-09-06 Stefano Lattarini <stefano.lattar...@gmail.com> tests: more use of TAP in our own testsuite diff --git a/tests/self-check-reexec.test b/tests/self-check-reexec.test index 2a0fb33..46cd0d4 100755 --- a/tests/self-check-reexec.test +++ b/tests/self-check-reexec.test @@ -28,8 +28,9 @@ unset AM_TESTS_REEXEC BASH_VERSION || : bash -c 'test -n "$BASH_VERSION"' || skip_ "bash shell not found" -for shell in /bin/sh /bin/ksh sh ksh dash pdksh __no_shell__; do +for shell in /bin/sh /bin/ksh sh ksh ash dash pdksh __no_shell__; do test $shell = __no_shell__ && skip_ "can't find any non-bash shell" + $shell -c 'exit 0' || continue $shell -c 'test -n "$BASH_VERSION"' && continue break done -- 1.7.2.3