From: Jim Meyering Date: Thu, 11 Nov 1999 13:46:19 +0000 (+0000) Subject: Add a test for this fix. X-Git-Tag: FILEUTILS-4_0j-trial~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6a764d8c63f9eac7aca81668deb7da1d70dc64a;p=thirdparty%2Fcoreutils.git Add a test for this fix. --- diff --git a/tests/mv/into-self-2 b/tests/mv/into-self-2 index 2abffcf989..84b02576bd 100755 --- a/tests/mv/into-self-2 +++ b/tests/mv/into-self-2 @@ -38,6 +38,9 @@ export LANG # This mv command should exit nonzero. mv $symlink $file > out 2>&1 && fail=1 +# And so should this one. +mv $file $symlink >> out 2>&1 && fail=1 + sed \ -e "s,mv:,XXX:," \ -e "s,$file,YYY," \ @@ -46,6 +49,7 @@ sed \ cat > exp <<\EOF XXX: `ZZZ' and `YYY' are the same file +XXX: `YYY' and `ZZZ' are the same file EOF #'