* 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-07 Stefano Lattarini <stefano.lattarini@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.lattarini@gmail.com>
tests: more use of TAP in our own testsuite
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