From: Jim Meyering Date: Mon, 6 Dec 2004 22:42:47 +0000 (+0000) Subject: Sanitize environment. X-Git-Tag: v5.3.0~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d28eb0923bb7f8e3c931120c3e6235db73404d3c;p=thirdparty%2Fcoreutils.git Sanitize environment. Otherwise, e.g., BLOCKSIZE=k would cause a failure. --- diff --git a/tests/cp/symlink-slash b/tests/cp/symlink-slash index 3ef527d495..f55d49dff6 100755 --- a/tests/cp/symlink-slash +++ b/tests/cp/symlink-slash @@ -7,6 +7,7 @@ if test "$VERBOSE" = yes; then cp --version fi +. $srcdir/../envvar-check . $srcdir/../lang-default pwd=`pwd` diff --git a/tests/du/files0-from b/tests/du/files0-from index 296e80d0de..36bc2e4db1 100755 --- a/tests/du/files0-from +++ b/tests/du/files0-from @@ -5,6 +5,8 @@ : ${PERL=perl} : ${srcdir=.} +. $srcdir/../envvar-check + $PERL -e 1 > /dev/null 2>&1 || { echo 1>&2 "$0: configure didn't find a usable version of Perl," \ "so can't run this test" diff --git a/tests/du/no-deref b/tests/du/no-deref index f0f1ba74ed..c8ef95ba18 100755 --- a/tests/du/no-deref +++ b/tests/du/no-deref @@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then du --version fi +. $srcdir/../envvar-check + pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 diff --git a/tests/ls/symlink-slash b/tests/ls/symlink-slash index fa9629cdfe..8862353e90 100755 --- a/tests/ls/symlink-slash +++ b/tests/ls/symlink-slash @@ -6,6 +6,7 @@ if test "$VERBOSE" = yes; then ls --version fi +. $srcdir/../envvar-check . $srcdir/../lang-default tmp=t-ls.$$