| Summary: | OpenFromClipboardTests causes NPEs and test failures | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> | ||||
| Component: | Debug | Assignee: | Deepak Azad <deepakazad> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P1 | Flags: | daniel_megert:
review+
|
||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M5 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dani Megert
The test works fine when ran in isolation. It causes problems when run from org.eclipse.jdt.debug.tests.AutomatedSuite. I will take a look. Created attachment 187609 [details]
fix
There were 2 problems
- The test was not added to AutomatedSuite correctly
- Once this was done, the tests were failing at OpenFromClipboardAction.executeRunnable(IRunnableWithProgress) line 408. This is because debug tests are not run in UI thread (see javadoc of DebugSuite.run(...))
Thanks Deepak. The patch is good. I added a comment why we need to use #suite() in AutomatedSuite. Committed to HEAD and released into I20110126-0800. Verified in I20110126-0800: all JDT Debug tests passed. |