| Summary: | JUnit tests can be delayed 2 seconds unnecessarily | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> | ||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, pawel.1.piech | ||||
| Version: | 7.0 | Flags: | marc.khouzam:
review?
(john.cortell) |
||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Committed to HEAD. John, can you review? *** cdt cvs genie on behalf of mkhouzam *** Bug 343745: JUnit tests can be delayed 2 seconds unnecessarily [*] BaseTestCase.java 1.16 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java?root=Tools_Project&r1=1.15&r2=1.16 |
Created attachment 193997 [details] Fix I noticed that there is a race condition when receiving the suspended event when we start a JUnit tests. In some tests, we perform some steps such as turning on reverse debugging, after the target is suspended. In those cases, we would wait 2 seconds for the suspended event to arrive, although that event has already been received. This patch simply checks if we have already received the event and avoid waiting for it in that case.