mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-22 16:35:25 +02:00
Fixed intermittent test failure caused by buggy test. A breakpoint hit can arrive after SyncUtil.resumeUntilStopped() returns. The test needs to call waitForBreakpointEvent() afterwards.
This commit is contained in:
parent
11a2fd30ea
commit
f001fc32d0
1 changed files with 6 additions and 0 deletions
|
@ -2054,6 +2054,7 @@ public class MIBreakpointsTest extends BaseTestCase {
|
|||
}
|
||||
SyncUtil.addBreakpoint(fileName + ":" + LINE_NUMBER_1, true);
|
||||
SyncUtil.resumeUntilStopped(1000);
|
||||
waitForBreakpointEvent(1); // bkpt-hit only; no bkpt-add event when using SyncUtil.addBreakpoint()
|
||||
clearEventCounters();
|
||||
|
||||
// Create a write watchpoint
|
||||
|
@ -2109,6 +2110,7 @@ public class MIBreakpointsTest extends BaseTestCase {
|
|||
}
|
||||
SyncUtil.addBreakpoint(fileName + ":" + LINE_NUMBER_1, true);
|
||||
SyncUtil.resumeUntilStopped(1000);
|
||||
waitForBreakpointEvent(1); // bkpt-hit only; no bkpt-add event when using SyncUtil.addBreakpoint()
|
||||
clearEventCounters();
|
||||
|
||||
// Create a write watchpoint
|
||||
|
@ -2165,6 +2167,7 @@ public class MIBreakpointsTest extends BaseTestCase {
|
|||
}
|
||||
SyncUtil.addBreakpoint(fileName + ":" + LINE_NUMBER_1, true);
|
||||
SyncUtil.resumeUntilStopped(1000);
|
||||
waitForBreakpointEvent(1); // bkpt-hit only; no bkpt-add event when using SyncUtil.addBreakpoint()
|
||||
clearEventCounters();
|
||||
|
||||
// Create a write watchpoint
|
||||
|
@ -3192,6 +3195,7 @@ public class MIBreakpointsTest extends BaseTestCase {
|
|||
}
|
||||
SyncUtil.addBreakpoint(fileName + ":" + LINE_NUMBER_4, true);
|
||||
SyncUtil.resumeUntilStopped(1000);
|
||||
waitForBreakpointEvent(1); // bkpt-hit only; no bkpt-add event when using SyncUtil.addBreakpoint()
|
||||
clearEventCounters();
|
||||
|
||||
// Create a write watchpoint
|
||||
|
@ -3262,6 +3266,7 @@ public class MIBreakpointsTest extends BaseTestCase {
|
|||
}
|
||||
SyncUtil.addBreakpoint(fileName + ":" + LINE_NUMBER_4, true);
|
||||
SyncUtil.resumeUntilStopped();
|
||||
waitForBreakpointEvent(1); // bkpt-hit only; no bkpt-add event when using SyncUtil.addBreakpoint()
|
||||
clearEventCounters();
|
||||
|
||||
// Create a write watchpoint
|
||||
|
@ -3333,6 +3338,7 @@ public class MIBreakpointsTest extends BaseTestCase {
|
|||
}
|
||||
SyncUtil.addBreakpoint(fileName + ":" + LINE_NUMBER_4, true);
|
||||
SyncUtil.resumeUntilStopped();
|
||||
waitForBreakpointEvent(1); // bkpt-hit only; no bkpt-add event when using SyncUtil.addBreakpoint()
|
||||
clearEventCounters();
|
||||
|
||||
// Create a write watchpoint
|
||||
|
|
Loading…
Add table
Reference in a new issue