aboutsummaryrefslogtreecommitdiffstats
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-08-04 13:28:56 -0700
committerJunio C Hamano <gitster@pobox.com>2021-08-04 13:28:56 -0700
commit099a64aa3943ba1eb9e0bd5ea20923820c29c95a (patch)
tree4ca5ad8fc1b53f38f7ff6f06c195d2128965d60d /t/test-lib.sh
parentdfbbe8bd498d055b6371d45e7f376b5038d81403 (diff)
parent3e7d4888e5b83f1ed75667ff557b8996f427adf0 (diff)
downloadgit-099a64aa3943ba1eb9e0bd5ea20923820c29c95a.tar.gz
Merge branch 'tb/mingw-rmdir-symlink-to-directory'
Windows rmdir() equivalent behaves differently from POSIX ones in that when used on a symbolic link that points at a directory, the target directory gets removed, which has been corrected. * tb/mingw-rmdir-symlink-to-directory: mingw: align symlinks-related rmdir() behavior with Linux
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index da13190970..db61081d6b 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -1545,6 +1545,12 @@ test_lazy_prereq SYMLINKS '
ln -s x y && test -h y
'
+test_lazy_prereq SYMLINKS_WINDOWS '
+ # test whether symbolic links are enabled on Windows
+ test_have_prereq MINGW &&
+ cmd //c "mklink y x" &> /dev/null && test -h y
+'
+
test_lazy_prereq FILEMODE '
test "$(git config --bool core.filemode)" = true
'