View | Details | Raw Unified | Return to bug 295619 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/AbstractJavaModelTests.java (-1 / +5 lines)
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) {
(-)src/org/eclipse/jdt/core/tests/model/JavaElementDeltaTests.java (-1 / +1 lines)
Lines 901-907 Link Here
901
 * Ensures that changing an external library folder referenced by a library entry and refreshing triggers the correct delta
901
 * Ensures that changing an external library folder referenced by a library entry and refreshing triggers the correct delta
902
 * Disable as long as it is not more reliable see https://bugs.eclipse.org/bugs/show_bug.cgi?id=295619
902
 * Disable as long as it is not more reliable see https://bugs.eclipse.org/bugs/show_bug.cgi?id=295619
903
 */
903
 */
904
public void _testChangeExternalLibFolder3() throws CoreException {
904
public void testChangeExternalLibFolder3() throws CoreException {
905
	try {
905
	try {
906
		createExternalFolder("externalLib/p");
906
		createExternalFolder("externalLib/p");
907
		createExternalFile("externalLib/p/X.class", "");
907
		createExternalFile("externalLib/p/X.class", "");

Return to bug 295619