summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse
diff options
context:
space:
mode:
authorShawn Pearce <sop@google.com>2012-10-25 18:01:04 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2012-10-25 18:01:04 -0400
commit71ac75fea3634763252cca88810ed25495bf2716 (patch)
treebb387f7351cfcbc9acfe2d87c21d126ee482208c /org.eclipse.jgit.test/tst/org/eclipse
parent4e6e267b8a8f9d9ef44b61adfdcba7e6ce1023f5 (diff)
parent243e14d051852cc38cff773571e42d42cadfe50e (diff)
downloadjgit-71ac75fea3634763252cca88810ed25495bf2716.tar.gz
jgit-71ac75fea3634763252cca88810ed25495bf2716.zip
Merge "Add a check in fstick that the reference file exists"
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
index 60b9462a05..60408054be 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RepositoryTestCase.java
@@ -371,6 +371,8 @@ public abstract class RepositoryTestCase extends LocalDiskRepositoryTestCase {
public static long fsTick(File lastFile) throws InterruptedException,
IOException {
long sleepTime = 1;
+ if (lastFile != null && !lastFile.exists())
+ throw new FileNotFoundException(lastFile.getPath());
File tmp = File.createTempFile("FileTreeIteratorWithTimeControl", null);
try {
long startTime = (lastFile == null) ? tmp.lastModified() : lastFile