diff options
author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2021-09-14 00:25:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-14 09:30:53 -0700 |
commit | 0fdcfa2f9f59a8bf4202ac3933991f42a4ac1393 (patch) | |
tree | e7915833f509c81ad3b014ab76d6d2fb18a750e5 /t/helper/test-pcre2-config.c | |
parent | The fifth batch (diff) | |
download | tgif-0fdcfa2f9f59a8bf4202ac3933991f42a4ac1393.tar.xz |
t0301: fixes for windows compatibility
In preparation for a future patch that will allow building with
Unix Sockets in Windows, workaround a couple of issues from the
Mingw-W64 compatibility layer.
test -S is not able to detect that a file is a socket, so use
test -e instead (through a library function).
`mkdir -m` can't represent a valid ACL directly and fails with
permission problems, so instead call mkdir followed by chmod, which
has been enhanced to do so.
The last invocation of mkdir would likely need the same treatment
but SYMLINK is unlikely to be enabled on Windows so it has been
punted for now.
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-pcre2-config.c')
0 files changed, 0 insertions, 0 deletions