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 <mlevedahl@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Mark Levedahl committed Jul 4, 2013 at 18:04 UTC 9443605b5d795122276b2c35887c9460148e2166
1 file changed +8 -1
t/test-lib.sh
+8 -1
@@ -737,7 +737,14 @@ test_i18ngrep () {
737
738 test_lazy_prereq PIPE '
739 # 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
748 '
749
750 test_lazy_prereq SYMLINKS '