git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] test-lib.sh - cygwin does not have usable FIFOs

From
Mark Levedahl <mlevedahl@gmail.com>
Date
Jul 4, 2013, 22:04 UTC
Message-ID
<1372975470-13573-1-git-send-email-mlevedahl@gmail.com>

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>
---
 t/test-lib.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 9753641..2d63307 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -885,7 +885,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 '
-- 
1.8.3.2.0.13
Next: Jonathan Nieder
Message 1 of 7 in “test-lib.sh - cygwin does not have usable FIFOs”
  1. test-lib.sh - cygwin does not have usable FIFOsMark Levedahl, Jul 4, 2013
  2. Jonathan NiederJul 7, 2013
  3. Torsten BögershausenJul 7, 2013
  4. Jonathan NiederJul 14, 2013
  5. Mark LevedahlJul 8, 2013
  6. Jonathan NiederJul 14, 2013
  7. Mark LevedahlJul 14, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.