]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: in self-checks, use $SHELL, not /bin/sh
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 19 Apr 2011 20:57:39 +0000 (22:57 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 19 Apr 2011 20:57:39 +0000 (22:57 +0200)
* 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.

ChangeLog
tests/self-check-me-in-env.test

index 6ea78a280b45c6fd5b5458e254a38de358bfba26..6aeafd51081e6e374c93684d9cc84b87472c3894 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
index 344a861b84740d1e5c76fe1b4ad39b6634700549..966088dcf9f5a059cce347f00759abebb8966a99 100755 (executable)
 # 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
 
 :