* tests/self-check-me-in-env.test: Include `./defs-static' to get
the definition of `$SHELL'. Use `$SHELL' instead of `/bin/sh' to
execute the tests.
+2011-04-19 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tests: in self-checks, use $SHELL, not /bin/sh
+ * tests/self-check-me-in-env.test: Include `./defs-static' to get
+ the definition of `$SHELL'. Use `$SHELL' instead of `/bin/sh' to
+ execute the tests.
+
2011-04-19 Stefano Lattarini <stefano.lattarini@gmail.com>
tests: prefer AM_TESTS_ENVIRONMENT to TESTS_ENVIRONMENT
# Make sure that the testsuite initialization code complains when
# $me is set in the environment.
+. ./defs-static || exit 1
+
set -x
exec 5>&1
-env me=foo /bin/sh -c '. ./defs' foo.test && exit 1
-env me=foo /bin/sh -c '. ./defs' foo.test 2>&1 1>&5 \
+env me=foo $SHELL -c '. ./defs' foo.test && exit 1
+env me=foo $SHELL -c '. ./defs' foo.test 2>&1 1>&5 \
| grep "variable \`me' is set in the environment.*unsafe" || exit 1
: