Skip to contentSkip to conversation

Fix FileTreeIteratorTest on Windows/NTFS

PATCH In review Jonas Fonseca 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 Fix FileTreeIteratorTest on Windows/NTFS

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.

---
 .../jgit/treewalk/FileTreeIteratorTest.java        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

With this all the tests pass on my Windows installation.

org.spearce.jgit.test/tst/org/spearce/jgit/treewalk/FileTreeIteratorTest.java +1 -1
index ca31991..967557e 100644
@@ -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;
 
Signature · 4 lines
1.6.0.2.1166.g8d97a.dirty

-- 
Jonas Fonseca