Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-06-05 09:49:48 -0400
committerStephan Herrmann2010-06-05 09:49:48 -0400
commitdb122ab55f2dd01ca8d895620cf8deb7d8b2d2ba (patch)
treec3a2c7e7417d92e1cd8738b4edfc4d0ee0276839 /org.eclipse.jdt.core.tests.model
parent65dff717c9e842e257f1ef7ba538fe1fce0b7a93 (diff)
downloadorg.eclipse.objectteams-db122ab55f2dd01ca8d895620cf8deb7d8b2d2ba.tar.gz
org.eclipse.objectteams-db122ab55f2dd01ca8d895620cf8deb7d8b2d2ba.tar.xz
org.eclipse.objectteams-db122ab55f2dd01ca8d895620cf8deb7d8b2d2ba.zip
update to 3.6 RC4 (using jdt.core v_A58 & jdt.ui v20100526-0800) going towards 0.7.0M4
Diffstat (limited to 'org.eclipse.jdt.core.tests.model')
-rw-r--r--org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java36
1 files changed, 31 insertions, 5 deletions
diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java
index 213a081e8..5185a97a9 100644
--- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java
+++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java
@@ -10962,7 +10962,12 @@ public void testBug286379c() throws CoreException {
}
}
// print statement to debug random failures of this test
- System.out.println("Forbidden reference at the start of the test is " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println("================================================================================");
+ System.out.println("Starting test JavaSearchBugTests.testBug286379c()...");
+ System.out.println(" - Options at test start:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
IContentType javaContentType = Platform.getContentTypeManager().getContentType(JavaCore.JAVA_SOURCE_CONTENT_TYPE);
TestResourceChangeListener changeListener = new TestResourceChangeListener();
@@ -11006,12 +11011,18 @@ public void testBug286379c() throws CoreException {
waitUntilIndexesReady();
// print statement to debug random failures of this test
- System.out.println("Forbidden reference before first exit " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" - Options before first exit:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
// Restart to let the indexes to be refreshed
simulateExit();
simulateRestart();
// print statement to debug random failures of this test
- System.out.println("Forbidden reference after first restart " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" - Options after first restart:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
waitUntilIndexesReady();
// Search for the new type with new extension
@@ -11032,12 +11043,18 @@ public void testBug286379c() throws CoreException {
javaContentType.removeFileSpec("torem", IContentType.FILE_EXTENSION_SPEC);
// print statement to debug random failures of this test
- System.out.println("Forbidden reference before second exit " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" - Options before second exit:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
// Restarting should update the index file to remove the references of any .torem files
simulateExit();
simulateRestart();
// print statement to debug random failures of this test
- System.out.println("Forbidden reference after second restart " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println(" - Options after second restart:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
waitUntilIndexesReady();
// Search for the new type with new extension
@@ -11050,11 +11067,20 @@ public void testBug286379c() throws CoreException {
IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH,
null);
assertSearchResults("No search results expected", "", collector);
+ System.out.println(" - Options after search:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
} finally {
getWorkspace().removeResourceChangeListener(changeListener);
if (javaContentType != null)
javaContentType.removeFileSpec("torem", IContentType.FILE_EXTENSION_SPEC);
deleteProject("P");
+ System.out.println(" - Options at test end:");
+ System.out.println(" + Task tags: " + JavaCore.getOption(JavaCore.COMPILER_TASK_TAGS));
+ System.out.println(" + Task priorities: " + JavaCore.getOption(JavaCore.COMPILER_TASK_PRIORITIES));
+ System.out.println(" + Forbidden reference: " + JavaCore.getOption(JavaCore.COMPILER_PB_FORBIDDEN_REFERENCE));
+ System.out.println("================================================================================");
}
}

Back to the top