threads / patch / 16006

patch, 3 partsFix FileTreeIteratorTest on Windows/NTFS

Subject: [JGIT PATCH 2/3] Fix FileTreeIteratorTest on Windows/NTFS

## tl;dr

One message between Oct 22, 2008 and Oct 22, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jonas Fonseca· Oct 22, 2008, 08:33 UTC · lore

Replace '.' with ',' in the test paths to keep the original intent, but make the test runnable on systems where files named "a." cannot be reliably created. The problem seems to be that a file created as "a." will end up as "a" on disk.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 .../jgit/treewalk/FileTreeIteratorTest.java        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 With this all the tests pass on my Windows installation.
Show changes to org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java +1 −1
diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java
index ca31991..967557e 100644
--- a/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java
+++ b/org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java
@@ -47,7 +47,7 @@
 import org.spearce.jgit.util.RawParseUtils;
 
 public class FileTreeIteratorTest extends RepositoryTestCase {
-	private final String[] paths = { "a.", "a.b", "a/b", "a0b" };
+	private final String[] paths = { "a,", "a,b", "a/b", "a0b" };
 
 	private long[] mtime;
 
-- 
1.6.0.2.1166.g8d97a.dirty

-- 
Jonas Fonseca

← back to recent threads