]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add a test for this fix.
authorJim Meyering <jim@meyering.net>
Thu, 11 Nov 1999 13:46:19 +0000 (13:46 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 11 Nov 1999 13:46:19 +0000 (13:46 +0000)
tests/mv/into-self-2

index 2abffcf98913b2e99f1ad5b70fe9804663217a84..84b02576bde0b52a46e5e35b58af30bbee238c2f 100755 (executable)
@@ -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
 #'