From: Jonas Fonseca <fonseca@diku.dk>
To: Robin Rosenberg <robin.rosenberg@dewire.com>,
"Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org
Subject: [JGIT PATCH 2/3] Fix FileTreeIteratorTest on Windows/NTFS
Date: Wed, 22 Oct 2008 10:33:32 +0200 [thread overview]
Message-ID: <20081022083332.GB17940@diku.dk> (raw)
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.
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
reply other threads:[~2008-10-22 8:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081022083332.GB17940@diku.dk \
--to=fonseca@diku.dk \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox