summaryrefslogtreecommitdiff
path: root/t/t0060-path-utils.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-01-02 20:38:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-02 20:38:30 (GMT)
commit13432fc6dd4f9f78d0015611621991693f8fb218 (patch)
tree221e5140bf01713bf9c2f4fd05c0501ccee3ae40 /t/t0060-path-utils.sh
parente0e1ac5db0235abba4038cf571a949c3f8c1b65c (diff)
parent4dc42c6c1867a52e22f1f04a1a247b5a7538b8af (diff)
downloadgit-13432fc6dd4f9f78d0015611621991693f8fb218.zip
git-13432fc6dd4f9f78d0015611621991693f8fb218.tar.gz
git-13432fc6dd4f9f78d0015611621991693f8fb218.tar.bz2
Merge branch 'js/mingw-reserved-filenames'
Forbid pathnames that the platform's filesystem cannot represent on MinGW. * js/mingw-reserved-filenames: mingw: refuse paths containing reserved names mingw: short-circuit the conversion of `/dev/null` to UTF-16
Diffstat (limited to 't/t0060-path-utils.sh')
-rwxr-xr-xt/t0060-path-utils.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index de2df57..2ea2d00 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -469,11 +469,14 @@ test_expect_success 'match .gitmodules' '
'
test_expect_success MINGW 'is_valid_path() on Windows' '
- test-tool path-utils is_valid_path \
+ test-tool path-utils is_valid_path \
win32 \
"win32 x" \
../hello.txt \
C:\\git \
+ comm \
+ conout.c \
+ lptN \
\
--not \
"win32 " \
@@ -481,7 +484,13 @@ test_expect_success MINGW 'is_valid_path() on Windows' '
"win32." \
"win32 . ." \
.../hello.txt \
- colon:test
+ colon:test \
+ "AUX.c" \
+ "abc/conOut\$ .xyz/test" \
+ lpt8 \
+ "lpt*" \
+ Nul \
+ "PRN./abc"
'
test_done