test: Don't have dangling symlinks in tests (for msys)
commitdda0d3d4797f9dd68620624a097017a8e8b8fce1
authorMichael Geddes <michael@frog.wheelycreek.net>
Mon, 21 Feb 2011 23:31:13 +0000 (22 07:31 +0800)
committerMichael Geddes <michael@frog.wheelycreek.net>
Sat, 21 Jun 2014 00:43:47 +0000 (21 08:43 +0800)
treeff93b8a3907e202d93c59529b598d1f8d16835ab
parent4d733b96311256c91f4f28d115af699ab67730dd
test: Don't have dangling symlinks in tests (for msys)

There are 2 reasons for this:
  * Under windows, ln() must determine whether the target is a directory or a
    file before creating the link.
  * msys doesn't handle dangling NTFS symlinks well (for example 'ls' will abort
    at that point, claiming the file doesn't exist).

So I have reordered commands to make sure our symlinks don't dangle from the
time of their creation.

Signed-off-by: Michael Geddes <michael@frog.wheelycreek.net>
t/t0000-basic.sh
t/t1504-ceiling-dirs.sh
t/t2201-add-update-typechange.sh
t/t3010-ls-files-killed-modified.sh
t/t4011-diff-symlink.sh
t/t4023-diff-rename-typechange.sh
t/t4115-apply-symlink.sh
t/t5000-tar-tree.sh