Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.mat.tests/src/org/eclipse/mat/tests/regression/TestApplication.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/plugins/org.eclipse.mat.tests/src/org/eclipse/mat/tests/regression/TestApplication.java b/plugins/org.eclipse.mat.tests/src/org/eclipse/mat/tests/regression/TestApplication.java
index a857f25c..34d2bfd8 100644
--- a/plugins/org.eclipse.mat.tests/src/org/eclipse/mat/tests/regression/TestApplication.java
+++ b/plugins/org.eclipse.mat.tests/src/org/eclipse/mat/tests/regression/TestApplication.java
@@ -232,10 +232,21 @@ public class TestApplication
catch (Exception e)
{
min = mx + 1;
- if (min > max && !success)
+ if (min > max)
{
- System.err.println("ERROR: " + e.getMessage());
- result.addErrorMessage(e.getMessage());
+ // Last -Xmx
+ if (success)
+ {
+ // Previous success, but expected failure with a too small Xmx
+ testResults.remove(result);
+ // but we had a success, so delete the index files
+ cleanIndexFiles(dump, result, false);
+ }
+ else
+ {
+ System.err.println("ERROR: " + e.getMessage());
+ result.addErrorMessage(e.getMessage());
+ }
}
else
{

Back to the top