Skip to content

Commit 35e4d77

Browse files
j6tgitster
authored andcommitted
t0008: skip trailing space test on Windows
The Windows API does not preserve file names with trailing spaces (and dots), but rather strips them. Our tools (MSYS bash, git) base the POSIX emulation on the Windows API. As a consequence, it is impossible for bash on Windows to allocate a file whose name has trailing spaces, and for git to stat such a file. Both operate on a file whose name has the spaces stripped. Skip the test that needs such a file name. Note that we do not use (another incarnation of) prerequisite FUNNYNAMES. The reason is that FUNNYNAMES is intended to represent a property of the file system. But the inability to have trailing spaces in a file name is a property of the Windows API. The file system (NTFS) does not have this limitation. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e2e4b3 commit 35e4d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t0008-ignores.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ EOF
793793
test_cmp err.expect err
794794
'
795795

796-
test_expect_success 'quoting allows trailing whitespace' '
796+
test_expect_success !MINGW 'quoting allows trailing whitespace' '
797797
rm -rf whitespace &&
798798
mkdir whitespace &&
799799
>"whitespace/trailing " &&

0 commit comments

Comments
 (0)