| Summary: | [launch] Cancelling an attach or postmortem launch no longer cancels | ||||||
|---|---|---|---|---|---|---|---|
| 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, nobody, pawel.1.piech | ||||
| Version: | 8.1.0 | Flags: | nobody:
review+
|
||||
| Target Milestone: | 8.1.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marc Khouzam
Created attachment 213086 [details]
Fix to cancel the new RM
This patch simply cancels the new RM we are using, when the original one was cancelled.
This is something we should do all the time when we use a new RM. I personally am not used to it because we didn't used to deal with cancellations, but now that we do, it should be dealt with when we write a handleCompleted() method.
Committed to master. I also re-tested the cases of bug 373845 and things still work as expected. Mikhail, can you review? Looks good. Should we add JUnit tests for cancelling? (In reply to comment #3) > Looks good. Should we add JUnit tests for cancelling? Absolutely. But I don't know how. These cancellations are triggered by cancelling a Dialog and we don't have JUnit tests that handle the UI. This is actually something that is a big lack in our JUnit coverage: there is a bunch of logic that we don't test because it is triggered from the UI. I've noticed that some other CDT JUnit tests trigger the UI. I haven't had time to investigate, but I would really like for DSF to have such tests. Marc, did you check in this patch? I don't see the changes. (In reply to comment #5) > Marc, did you check in this patch? I don't see the changes. Yes, I committed it. I fetched it back and I also see it from the web interface at: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ccf74d51d0917607433997778b66dec882c14f79 (In reply to comment #6) > (In reply to comment #5) > > Marc, did you check in this patch? I don't see the changes. > > Yes, I committed it. I fetched it back and I also see it from the web > interface at: > http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ccf74d51d0917607433997778b66dec882c14f79 The last patch I see is Anna's patch. But it seems that I did something wrong, can you please check this change: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9e7c69f28952f708bfc1997c318043eee112a4c3 It appeared when I committed the patch for the test application name. I hope I didn't break anything. (In reply to comment #7) > The last patch I see is Anna's patch. But it seems that I did something wrong, > can you please check this change: > http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9e7c69f28952f708bfc1997c318043eee112a4c3 > It appeared when I committed the patch for the test application name. I hope I > didn't break anything. As confirmed on the mailing list, nothing got broken. But are you able to fetch the latest commits? (In reply to comment #8) > (In reply to comment #7) > > > The last patch I see is Anna's patch. But it seems that I did something wrong, > > can you please check this change: > > http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9e7c69f28952f708bfc1997c318043eee112a4c3 > > It appeared when I committed the patch for the test application name. I hope I > > didn't break anything. > > As confirmed on the mailing list, nothing got broken. > > But are you able to fetch the latest commits? Yes, after I made the changes suggested by Pawel and Andrew. (In reply to comment #4) > (In reply to comment #3) > > Looks good. Should we add JUnit tests for cancelling? > > Absolutely. But I don't know how. These cancellations are triggered by > cancelling a Dialog and we don't have JUnit tests that handle the UI. This is > actually something that is a big lack in our JUnit coverage: there is a bunch > of logic that we don't test because it is triggered from the UI. > > I've noticed that some other CDT JUnit tests trigger the UI. I haven't had > time to investigate, but I would really like for DSF to have such tests. I created https://bugs.eclipse.org/bugs/show_bug.cgi?id=375203 to track this proposal. *** cdt git genie on behalf of Marc Khouzam ***
Bug 375131: [launch] Cancelling an attach or postmortem launch no longer cancels
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ccf74d51d0917607433997778b66dec882c14f79
|