From: Jim Meyering Date: Thu, 6 Mar 2003 07:43:45 +0000 (+0000) Subject: Unset CDPATH. Otherwise, having the X-Git-Tag: v4.5.10~119 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00709b8fa234db37968d5b5c976fa722da9ff795;p=thirdparty%2Fcoreutils.git Unset CDPATH. Otherwise, having the CDPATH shell variable set could cause this test to fail. --- diff --git a/tests/cp/same-file b/tests/cp/same-file index 3d6aa95f67..639098ebd4 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`