diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-01-02 23:38:30 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-02 23:38:30 +0300 |
commit | 13432fc6dd4f9f78d0015611621991693f8fb218 (patch) | |
tree | 221e5140bf01713bf9c2f4fd05c0501ccee3ae40 /t | |
parent | e0e1ac5db0235abba4038cf571a949c3f8c1b65c (diff) | |
parent | 4dc42c6c1867a52e22f1f04a1a247b5a7538b8af (diff) |
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')
-rwxr-xr-x | t/t0060-path-utils.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh index de2df573a7..2ea2d00c39 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 |