Skip to content

Commit f256de1

Browse files
committed
Enable DeltaProcessor debug mode in TypeHierarchyNotificationTests
TypeHierarchyNotificationTests fails infrequently with missing deltas. This change enables debug mode in DeltaProcessor, to hopefully record non-main threads sending notifications, causing a race condition. See: #5040
1 parent 4ea0cd7 commit f256de1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeHierarchyNotificationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import org.eclipse.core.runtime.Path;
2929
import org.eclipse.jdt.core.*;
3030
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
31+
import org.eclipse.jdt.internal.core.DeltaProcessor;
3132

3233
public class TypeHierarchyNotificationTests extends ModifyingResourceTests implements ITypeHierarchyChangedListener {
3334
/**
@@ -111,6 +112,7 @@ protected void setUp() throws Exception {
111112
super.setUp();
112113
reset();
113114
this.setUpJavaProject("TypeHierarchyNotification", CompilerOptions.getFirstSupportedJavaVersion());
115+
DeltaProcessor.DEBUG = true;
114116
}
115117
static {
116118
// TESTS_NAMES= new String[] { "testAddExtendsSourceType3" };
@@ -120,6 +122,7 @@ public static Test suite() {
120122
}
121123
@Override
122124
protected void tearDown() throws Exception {
125+
DeltaProcessor.DEBUG = false;
123126
this.deleteProject("TypeHierarchyNotification");
124127
super.tearDown();
125128
}

0 commit comments

Comments
 (0)