From 63954a8d486da9cede6b68de25bb6648dddad4ef Mon Sep 17 00:00:00 2001 From: Alena Laskavaia Date: Tue, 25 May 2010 00:16:57 +0000 Subject: [PATCH] trying to fix test with hit condition --- .../org/eclipse/cdt/debug/core/tests/BreakpointTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java index da82fa72845..841e426948c 100644 --- a/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java +++ b/debug/org.eclipse.cdt.debug.ui.tests/core/org/eclipse/cdt/debug/core/tests/BreakpointTests.java @@ -535,9 +535,9 @@ public class BreakpointTests extends AbstractDebugTest { * Create a break point on a generic function with an valid condition **********************************************************************/ cond = cdiTarget.createCondition(0, "x<10"); - location = cdiTarget.createFunctionLocation(null, "func1"); + ICDILineLocation location2 = cdiTarget.createLineLocation("main.c", 9); assertNotNull(location); - cdiTarget.setFunctionBreakpoint(0, location, cond, false); + cdiTarget.setLineBreakpoint(0, location2, cond, false); } public void testCondBreakError() { @@ -566,7 +566,7 @@ public class BreakpointTests extends AbstractDebugTest { resumeCurrentTarget(); waitSuspend(currentTarget); } - public void testHitCondWithError_xfail() throws CoreException, MIException, IOException, CDIException, InterruptedException { + public void testHitCondWithError() throws CoreException, MIException, IOException, CDIException, InterruptedException { // this currently fails sometimes - after set bad breakpoint it does not hit any // only reproducible when setting invalid condition breakpoint, reason unknown setBreakOnMain();