Lines 2819-2826
Link Here
|
2819 |
} |
2819 |
} |
2820 |
protected void touch(File f) { |
2820 |
protected void touch(File f) { |
2821 |
int time = 1000; |
2821 |
int time = 1000; |
2822 |
f.setLastModified(f.lastModified() + time); |
2822 |
long lastModified = f.lastModified(); |
|
|
2823 |
f.setLastModified(lastModified + time); |
2823 |
org.eclipse.jdt.core.tests.util.Util.waitAtLeast(time); |
2824 |
org.eclipse.jdt.core.tests.util.Util.waitAtLeast(time); |
|
|
2825 |
// Assertion to track the reason of unexpected failures with tests on external resources |
2826 |
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=295619 |
2827 |
assertEquals("The file "+f.getAbsolutePath()+" was not touched!", lastModified+time, f.lastModified()); |
2824 |
} |
2828 |
} |
2825 |
|
2829 |
|
2826 |
protected String toString(String[] strings) { |
2830 |
protected String toString(String[] strings) { |