Community
Participate
Working Groups
Per bug 142528 comment 3, this report is being open to indicate that there are failures in the JDT Core model tests when the test methods are added in reverse order (see bug 142528 comment 1). Attachment to follow with results.
Created attachment 42991 [details] JUnit results (3.2RC6)
I'll see what I can do.
The order that we get with the Sun VM seems to be the order in which the methods are defined. So we either fix the creation of the tests' list to get a specific order (alphabetic order, ...) or we specify explicitly the order of the tests for the test suites that are failing with JRockit VM.
It would be good to understand the nature of the problem. I would fix the tests to be order independant.
also cc'ing Frederic our search test owner
The nature of the problem is simple. Some tests are expecting to be run in a specific order. The first one sets some working copies and the other ones are using the same working copies. Unfortunately the order is VM dependant. So on Sun VM, the order seems to be the declaration order. But this is not garantee to be true. So the test suite that are based on this assumption should specify explicitely the order of the tests.
I will fix problems in JavaSearchBugsTests and also all potential ones which use AbstractJavaModelTests.discard field... David, there are also some problems with completion tests, please have a look at them (except in JavadocFieldCompletionModelTest), thanks
Created attachment 43103 [details] Proposed patch Fix all tests to be independant from execution order in: - JavaSearchBugTests - JavadocFieldCompletionTests - ASTConverterTest2 - ASTConverterTestAST3_2 Sort tests while suite execution in: - CompletionTests: should be changed to be independant from exec order post 3.2 - CreationMemberTests
Patch released in HEAD.
Patch released in TARGET_321 branch
Verified with I20060602-1317 for RC7 by running the Model tests using the JRockit VM.
Reopen to verify it in R3_2_maintenance stream...
Released for 3.2.1 (TARGET_321 was branched before 3.2 RC7...)
I changed CompletionTests to be independant from exec order in 3.3.
Released for 3.3 M1
Verified for 3.3 M1 using build I20060804-0010.
Verified for 3.2.1 using build M20060908-1655.