Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Johnson2019-09-11 10:10:28 -0400
committerAndrew Johnson2019-09-11 10:10:28 -0400
commitd09d21ade4a10b797dcb5a045c7876560fa51c6a (patch)
treef21e330ea3e7864595ecd152fbfc8a73dabcfd07
parentc29a7417779c1801027c814e7bd9e4813a9ca0f0 (diff)
downloadorg.eclipse.mat-d09d21ade4a10b797dcb5a045c7876560fa51c6a.tar.gz
org.eclipse.mat-d09d21ade4a10b797dcb5a045c7876560fa51c6a.tar.xz
org.eclipse.mat-d09d21ade4a10b797dcb5a045c7876560fa51c6a.zip
277422: Nice if heap parsing was multi-threaded
Clean up index files if was a previous success with Xmx Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=277422 Change-Id: I83d2337582b06246e711786eb09019401aab6281
-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