diff options
author | Shawn Pearce <sop@google.com> | 2012-10-25 18:01:04 -0400 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2012-10-25 18:01:04 -0400 |
commit | 71ac75fea3634763252cca88810ed25495bf2716 (patch) | |
tree | bb387f7351cfcbc9acfe2d87c21d126ee482208c /org.eclipse.jgit.test/tst/org/eclipse | |
parent | 4e6e267b8a8f9d9ef44b61adfdcba7e6ce1023f5 (diff) | |
parent | 243e14d051852cc38cff773571e42d42cadfe50e (diff) | |
download | jgit-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.java | 2 |
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 |