tests: non-GNU mv can't move a file onto a hardlink of itself
authorDanek Duvall <danek.duvall@oracle.com>
Thu, 14 Jan 2016 13:33:08 -0800
changeset 27789 63116d47cc3f
parent 27788 d713fa934fb9
child 27790 2d294dada4f8
tests: non-GNU mv can't move a file onto a hardlink of itself On Solaris, when you try to mv a file to another path that is a hardlink to the original, it complains that they're identical. GNU mv doesn't complain, but it's simpler to just remove the original file instead.
tests/test-largefiles-update.t
--- a/tests/test-largefiles-update.t	Thu Jan 07 06:44:37 2016 +0100
+++ b/tests/test-largefiles-update.t	Thu Jan 14 13:33:08 2016 -0800
@@ -160,7 +160,7 @@
   (branch merge, don't forget to commit)
   $ hg commit -m '1-2-3 testing'
   $ hg rollback -q
-  $ mv 58e24f733a964da346e2407a2bee99d9001184f5 .hg/largefiles/
+  $ rm 58e24f733a964da346e2407a2bee99d9001184f5
 
 Test that "hg revert -r REV" updates largefiles from "REV" correctly