Skip to content

Commit 9443605

Browse files
mark987gitster
authored andcommitted
test-lib.sh - cygwin does not have usable FIFOs
Do not use FIFOs on cygwin, they do not work. Cygwin includes coreutils, so has mkfifo, and that command does something. However, the resultant named pipe is known (on the Cygwin mailing list at least) to not work correctly. This disables PIPE for Cygwin, allowing t0008.sh to complete (all other tests in that file work correctly). Signed-off-by: Mark Levedahl <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 81a199b commit 9443605

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

t/test-lib.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,14 @@ test_i18ngrep () {
737737

738738
test_lazy_prereq PIPE '
739739
# test whether the filesystem supports FIFOs
740-
rm -f testfifo && mkfifo testfifo
740+
case $(uname -s) in
741+
CYGWIN*)
742+
false
743+
;;
744+
*)
745+
rm -f testfifo && mkfifo testfifo
746+
;;
747+
esac
741748
'
742749

743750
test_lazy_prereq SYMLINKS '

0 commit comments

Comments
 (0)