From 0874a4a9731620c2f55b1afca11f1143fddb6d2d Mon Sep 17 00:00:00 2001 From: John Cortell <john.cortell@freescale.com> Date: Fri, 28 May 2010 20:49:52 +0000 Subject: [PATCH] Don't wait forever --- .../cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java index ebf1c075c6a..2240182036d 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/MIBreakpointsTest.java @@ -391,7 +391,7 @@ public class MIBreakpointsTest extends BaseTestCase { }); // Wait for completion - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); assertTrue(fWait.getMessage(), fWait.isOK()); // Return the string formatted by the back-end @@ -436,7 +436,7 @@ public class MIBreakpointsTest extends BaseTestCase { }); // Wait for completion - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); assertTrue(fWait.getMessage(), fWait.isOK()); // Return the string formatted by the back-end @@ -478,7 +478,7 @@ public class MIBreakpointsTest extends BaseTestCase { }); // Wait for completion - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); assertTrue(fWait.getMessage(), fWait.isOK()); // Return the string formatted by the back-end @@ -521,7 +521,7 @@ public class MIBreakpointsTest extends BaseTestCase { }); // Wait for the result and return the breakpoint id - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); return drm.getData(); } @@ -560,7 +560,7 @@ public class MIBreakpointsTest extends BaseTestCase { }); // Wait for the result - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); } /* ------------------------------------------------------------------------ @@ -599,7 +599,7 @@ public class MIBreakpointsTest extends BaseTestCase { }); // Wait for the result - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); } // ======================================================================== @@ -1685,7 +1685,7 @@ public class MIBreakpointsTest extends BaseTestCase { // Remove the selected breakpoint IBreakpointDMContext index = breakpoints[indices[i]]; removeBreakpoint(index); - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); assertTrue(fWait.getMessage(), fWait.isOK()); breakpoints_left--;