summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2013-10-08 10:35:39 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2013-10-20 00:13:58 +0200
commit068e2df1ce345f64b30b72471a26d1ce53206b6c (patch)
treedeb20a2d1b4e8ead48c1b7e8875fcc295d3ab6ef /org.eclipse.jgit.junit
parent8de3512890480dbed07fa6d46aef722c1ddda442 (diff)
downloadjgit-068e2df1ce345f64b30b72471a26d1ce53206b6c.tar.gz
jgit-068e2df1ce345f64b30b72471a26d1ce53206b6c.zip
Fix failed tests when the tmp directory is a symlink
On Mac OS X /tmp is by default a symbolic link. Change-Id: I0913ee5ee8db5c5918a9e41abbbfe125b6c70783 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java
index 1f1962a7b1..7b12ce1b21 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/RepositoryTestCase.java
@@ -498,4 +498,9 @@ public abstract class RepositoryTestCase extends LocalDiskRepositoryTestCase {
Constants.OBJ_BLOB, Constants.encode(content)));
return entry;
}
+
+ public static void assertEqualsFile(File expected, File actual)
+ throws IOException {
+ assertEquals(expected.getCanonicalFile(), actual.getCanonicalFile());
+ }
}