Bug 146015 - Some JDT/Core tests results are still VM dependent
Summary: Some JDT/Core tests results are still VM dependent
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 146615
Blocks: 142528
  Show dependency tree
 
Reported: 2006-06-08 10:51 EDT by Frederic Fusier CLA
Modified: 2006-09-11 13:50 EDT (History)
1 user (show)

See Also:


Attachments
Failing tests using Sun 1.5.0_08 VM (170.61 KB, text/plain)
2006-06-08 10:56 EDT, Frederic Fusier CLA
no flags Details
Proposed patch (4.35 KB, patch)
2006-06-14 13:16 EDT, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2006-06-08 10:51:25 EDT
If you use -Dordering=3 system property to change tests order while running JUnit JDT/Core all tests, then some tests are failing and model tests do not finish.

The "ordering" system property specified in launch configuration VM arguments change tests order in following manner:
1: alphabetical ascending order
2: alphabetical descending order
3: random order using JDT/Core version for seed
4: random order using time for seed
n: random order using given 'n' value for seed

This option simulates a VM which would sort methods differently than usual ones...
Comment 1 Frederic Fusier CLA 2006-06-08 10:56:20 EDT
Created attachment 43863 [details]
Failing tests using Sun 1.5.0_08 VM

Note that tests seem to be also VM dependent not only for tests order. Some tests expected results used Map which may be ordered differently on other VMs or other versions.
This must also be fixed...
Comment 2 Jerome Lanneluc CLA 2006-06-09 06:19:03 EDT
Entered bug 146215 for the order problem due to the different Map implementation.
Comment 3 Frederic Fusier CLA 2006-06-12 12:01:53 EDT
Entered bug 146615 for the order problem in TypeHierarchyTests
Comment 4 Frederic Fusier CLA 2006-06-14 13:16:06 EDT
Created attachment 44425 [details]
Proposed patch

ClasspathInitializerTests issue does no longer occur in HEAD stream => just force tests sort in maintenance stream
Comment 5 Frederic Fusier CLA 2006-06-14 13:19:10 EDT
Released for 3.2.1 in TARGET_321 branch
Comment 6 Frederic Fusier CLA 2006-06-14 13:20:00 EDT
Released for 3.3 M1 in HEAD (except change on ClasspathInitializerTests)
Comment 7 Frederic Fusier CLA 2006-08-04 12:15:07 EDT
Verified for 3.3 M1 using build I20060804-0010.
Comment 8 Olivier Thomann CLA 2006-09-11 13:50:31 EDT
Verified for 3.2.1 using build M20060908-1655 using JRockit VM.