summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-06 07:43:45 +0000
committerJim Meyering <jim@meyering.net>2003-03-06 07:43:45 +0000
commit00709b8fa234db37968d5b5c976fa722da9ff795 (patch)
tree0342b8f72fc08b72412c66babc3f72dfc86869e1
parent4e38ca53ee5324f0ba7f30e43855e116f16323e9 (diff)
downloadcoreutils-00709b8fa234db37968d5b5c976fa722da9ff795.tar.xz
Unset CDPATH. Otherwise, having the
CDPATH shell variable set could cause this test to fail.
-rwxr-xr-xtests/cp/same-file4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 3d6aa95f6..639098ebd 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -9,6 +9,10 @@ fi
. $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
+
VERSION_CONTROL=numbered; export VERSION_CONTROL
pwd=`pwd`