Skip to content

Commit a390d7e

Browse files
dschogitster
authored andcommitted
tests: turn off git-daemon tests if FIFOs are not available
The Git daemon tests create a FIFO first thing and will hang if said FIFO is not available. This is a problem with Git for Windows, where `mkfifo` is an MSYS2 program that leverages MSYS2's POSIX emulation layer, but `git-daemon.exe` is a MINGW program that has not the first clue about that POSIX emulation layer and therefore blinks twice when it sees MSYS2's emulated FIFOs and then just stares into space. This lets t5570-git-daemon.sh and t5811-proto-disable-git.sh pass. Signed-off-by: Stepan Kasal <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a1f3296 commit a390d7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/lib-git-daemon.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ then
2323
test_done
2424
fi
2525

26+
if test_have_prereq !PIPE
27+
then
28+
test_skip_or_die $GIT_TEST_GIT_DAEMON "file system does not support FIFOs"
29+
fi
30+
2631
LIB_GIT_DAEMON_PORT=${LIB_GIT_DAEMON_PORT-${this_test#t}}
2732

2833
GIT_DAEMON_PID=

0 commit comments

Comments
 (0)