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

[PATCH] t3200: fix failure on case-insensitive filesystems

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Sep 14, 2013, 07:36 UTC
Message-ID
<1379144184-17568-1-git-send-email-sunshine@sunshineco.com>

62d94a3a (t3200: Add test demonstrating minor regression in 41c21f2; 2013-09-08) introduced a test which creates a directory named 'a', however, on case-insensitive filesystems, this action fails with a "fatal: cannot mkdir a: File exists" error due to a file named 'A' left over from earlier tests. Resolve this problem.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
---
This applies against 'next'.

There are many ways to resolve this failure. I chose one in which the test arranges a clean slate for itself before performing the important operations.

 t/t3200-branch.sh | 1 +
 1 file changed, 1 insertion(+)
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 84fcbf4..0fe7647 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -873,6 +873,7 @@ test_expect_success '--merged catches invalid object names' '
 '
 
 test_expect_success 'tracking with unexpected .fetch refspec' '
+	rm -rf a b c d &&
 	git init a &&
 	(
 		cd a &&
-- 
1.8.4.535.g7b94f8e
Message 1 of 1 in “t3200: fix failure on case-insensitive filesystems”
  1. t3200: fix failure on case-insensitive filesystemsEric Sunshine, Sep 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.