summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-12-06 22:42:47 +0000
committerJim Meyering <jim@meyering.net>2004-12-06 22:42:47 +0000
commitd28eb0923bb7f8e3c931120c3e6235db73404d3c (patch)
treefb44eb8b611690e64e707a455d6b88b0bf000182 /tests
parent31ae5dcf8561201e3ab61b38bd6a02413b1a9a0a (diff)
downloadcoreutils-d28eb0923bb7f8e3c931120c3e6235db73404d3c.tar.xz
Sanitize environment.
Otherwise, e.g., BLOCKSIZE=k would cause a failure.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/cp/symlink-slash1
-rwxr-xr-xtests/du/files0-from2
-rwxr-xr-xtests/du/no-deref2
-rwxr-xr-xtests/ls/symlink-slash1
4 files changed, 6 insertions, 0 deletions
diff --git a/tests/cp/symlink-slash b/tests/cp/symlink-slash
index 3ef527d49..f55d49dff 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 296e80d0d..36bc2e4db 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 f0f1ba74e..c8ef95ba1 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 fa9629cdf..8862353e9 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.$$