| Summary: | [Workbench] Intermittent test failure in PlatformUITest.testWithoutDisplayAccess_sync() | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Oleg Besedin <ob1.eclipse> | ||||
| Component: | UI | Assignee: | Paul Webster <pwebster> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Paul Webster <pwebster> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bokowski, daniel_megert, ob1.eclipse, pwebster | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux-GTK | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Oleg Besedin
The tests in the PlatformUITest added for the bug 182176 depend on the order in which tests were executed. For instance, for the test testDisplayAccess_sync() to pass, the test testCreateAndRunWorkbench() had to run first. (See CheckForWorkbench extends WorkbenchAdvisorObserver extends RCPTestWorkbenchAdvisor.) The order of the tests in JUnit is undefined and probably changes when tests are repacked for the actual builds. (In reply to comment #1) > The order of the tests in JUnit is undefined and probably changes when tests > are repacked for the actual builds. This is true. The only way to gaurantee order between test method executing is to specify the all of the tests when creating the test suites. PW Created attachment 186105 [details]
defined order v01
Control the order of the tests.
Released for the next nightly.
PW
I'll mark this as fixed, but we'll have to keep an eye on it. PW In I20110124-1345 Defining the test order has solved the issue. If it crops up again we'll open a new bug. PW *** Bug 262194 has been marked as a duplicate of this bug. *** (In reply to comment #5) > In I20110124-1345 > > Defining the test order has solved the issue. If it crops up again we'll open > a new bug. This now fails again when run against Java 7, see bug 343261. |