mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Adjust timeout. Avoid excessive wait on failed test.
This commit is contained in:
parent
0ca9d1d016
commit
ebaad16039
1 changed files with 5 additions and 4 deletions
|
@ -1192,15 +1192,16 @@ public class MIBreakpointsTest extends BaseTestCase {
|
||||||
breakpoint.put(FILE_NAME_TAG, SOURCE_FILE);
|
breakpoint.put(FILE_NAME_TAG, SOURCE_FILE);
|
||||||
breakpoint.put(LINE_NUMBER_TAG, LINE_NUMBER_5);
|
breakpoint.put(LINE_NUMBER_TAG, LINE_NUMBER_5);
|
||||||
|
|
||||||
// Run the program
|
// Run the program. It will make a one second sleep() call, during which time...
|
||||||
SyncUtil.resume();
|
SyncUtil.resume();
|
||||||
|
|
||||||
// Install the breakpoint
|
// ...we install the breakpoint
|
||||||
MIBreakpointDMContext ref = (MIBreakpointDMContext) insertBreakpoint(fBreakpointsDmc, breakpoint);
|
MIBreakpointDMContext ref = (MIBreakpointDMContext) insertBreakpoint(fBreakpointsDmc, breakpoint);
|
||||||
assertTrue(fWait.getMessage(), fWait.isOK());
|
assertTrue(fWait.getMessage(), fWait.isOK());
|
||||||
|
|
||||||
// Wait for breakpoint to hit
|
// Wait for breakpoint to hit. The program terminates after the sleep()
|
||||||
MIStoppedEvent event = SyncUtil.waitForStop();
|
// call, so waiting four seconds is more than enough
|
||||||
|
MIStoppedEvent event = SyncUtil.waitForStop(4000);
|
||||||
|
|
||||||
// Ensure the correct BreakpointEvent was received
|
// Ensure the correct BreakpointEvent was received
|
||||||
waitForBreakpointEvent(2);
|
waitForBreakpointEvent(2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue