1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-08 08:45:44 +02:00

trying to fix test with hit condition

This commit is contained in:
Alena Laskavaia 2010-05-25 00:16:57 +00:00
parent e69005fbaa
commit 63954a8d48

View file

@ -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();