diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java index 171f9691b26..cb791e4916c 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java @@ -322,6 +322,14 @@ public class GDBConsoleBreakpointsTest extends BaseTestCase { Assert.assertTrue(miBpts.length == 1); waitForBreakpointEvent(IBreakpointsAddedEvent.class); Assert.assertTrue(getPlatformBreakpointCount() == 1); + + // Give a little delay to allow queued Executor operations + // to complete before deleting the breakpoint again. + // If we don't we may delete it so fast that the MIBreakpointsManager + // has not yet updated its data structures + // Bug 438934 comment 10 + Thread.sleep(500); + plBpt = findPlatformBreakpoint(type, attributes); Assert.assertTrue(plBpt instanceof CBreakpoint); if (!miBpts[0].isPending()) {