summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-19 08:15:14 +0000
committerJim Meyering <jim@meyering.net>2003-03-19 08:15:14 +0000
commitb01894ce34c4078c4140d0c0a4ee409398ea1121 (patch)
tree2e9ed245d1246e416e7e78f02dfc0d348d6a5a17 /tests
parent7c76b720e8c8d19c7761afe5bc2defc9512260ec (diff)
downloadcoreutils-b01894ce34c4078c4140d0c0a4ee409398ea1121.tar.xz
Unset CDPATH. Otherwise, having the
CDPATH shell variable set could cause this test to fail.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/part-symlink4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index cf2055fdf..4bcef66e8 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -20,6 +20,10 @@ pwd_tmp=$pwd/$tmp
# Make sure the programs use C-locale formats/translations.
. $srcdir/../lang-default
+# Unset CDPATH. Otherwise, output from the `cd dir' command
+# can make this test fail.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
if test -z "$other_partition_tmpdir"; then
(exit 77); exit
fi