]> granicus.if.org Git - git/commitdiff
test-lib.sh - cygwin does not have usable FIFOs
authorMark Levedahl <mlevedahl@gmail.com>
Thu, 4 Jul 2013 22:04:30 +0000 (18:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Jul 2013 07:06:22 +0000 (00:06 -0700)
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>
t/test-lib.sh

index ca6bdef63d2ee9389729e5118f22461c887dc5ed..e74bc224b31bea7919b7e1762924534c0bf24eaa 100644 (file)
@@ -737,7 +737,14 @@ test_i18ngrep () {
 
 test_lazy_prereq PIPE '
        # test whether the filesystem supports FIFOs
-       rm -f testfifo && mkfifo testfifo
+       case $(uname -s) in
+       CYGWIN*)
+               false
+               ;;
+       *)
+               rm -f testfifo && mkfifo testfifo
+               ;;
+       esac
 '
 
 test_lazy_prereq SYMLINKS '