Bug 403383 - 3 failing tests in M6 candidate (caused by
ConditionalBreakpointsWithGenerics#testBreakpointWithGenericCondition4)
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java
index 6d35d83..d3872e1 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java
+++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/breakpoints/ConditionalBreakpointsWithGenerics.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012 Jesper Steen Moller and others.
+ * Copyright (c) 2012, 2013 Jesper Steen Moller and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -245,6 +245,7 @@
*/
public void testBreakpointWithGenericCondition4() throws Exception {
String type = "a.b.c.bug403028";
+ IJavaThread thread = null;
try {
String condition = "StringBuffer buf = new StringBuffer();"
+ "buf.append(\"{\");"
@@ -264,11 +265,11 @@
+ "buf.toString();"
+ "return false;";
createConditionalLineBreakpoint(10, type, condition, false);
- //should not suspend or throw an exception
- launchToBreakpoint(type);
+ thread = launchToBreakpoint(type);
}
finally {
removeAllBreakpoints();
+ terminateAndRemove(thread);
}
}
}