summaryrefslogtreecommitdiff
path: root/tests/cp/same-file
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/same-file')
-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`