From 0eb1964dd645affd01548df8df3cc1a91b237b56 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Fri, 5 Mar 2010 23:24:17 +0000 Subject: [PATCH] Don't wait forever --- .../cdt/tests/dsf/gdb/tests/GDBProcessesTest.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java index 2770564e290..b6cc6354e28 100644 --- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java +++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBProcessesTest.java @@ -119,12 +119,9 @@ public class GDBProcessesTest extends BaseTestCase { } }); /* - * Wait for the operation to get over - */ - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); - /* - * Assert false if status is not OK + * Wait for the operation to complete and validate success. */ + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); Assert.assertTrue(fWait.getMessage(), fWait.isOK()); /* @@ -161,7 +158,9 @@ public class GDBProcessesTest extends BaseTestCase { fProcService.getExecutionData(threadDmc, rm); } }); - fWait.waitUntilDone(AsyncCompletionWaitor.WAIT_FOREVER); + + // Wait for the operation to complete and validate success. + fWait.waitUntilDone(TestsPlugin.massageTimeout(2000)); assertTrue(fWait.getMessage(), fWait.isOK()); IThreadDMData threadData = (IThreadDMData)fWait.getReturnInfo();