summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2011-08-19 05:30:17 (EDT)
committermrennie2011-10-11 14:31:55 (EDT)
commit7964563040763a391dfdc264e8b5fe09a22bd2c2 (patch)
tree69914bc5be515ca83029d8c4f0a1a42a196de18f
parent77a093735825dad929ff3b05e3e3a3c62866a843 (diff)
downloadeclipse.pde.ui-7964563040763a391dfdc264e8b5fe09a22bd2c2.zip
eclipse.pde.ui-7964563040763a391dfdc264e8b5fe09a22bd2c2.tar.gz
eclipse.pde.ui-7964563040763a391dfdc264e8b5fe09a22bd2c2.tar.bz2
Fixed bug 355152: Performance improvement for UsageTest suite
-rw-r--r--apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/usage/UsageTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/usage/UsageTest.java b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/usage/UsageTest.java
index 9687835..2139a2d 100644
--- a/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/usage/UsageTest.java
+++ b/apitools/org.eclipse.pde.api.tools.tests/src/org/eclipse/pde/api/tools/builder/tests/usage/UsageTest.java
@@ -139,12 +139,13 @@ public abstract class UsageTest extends ApiBuilderTest {
*/
@Override
protected void setUp() throws Exception {
- super.setUp();
+ // If we have an existing environment, set it to revert rather than delete the workspace to improve performance
ApiTestingEnvironment env = getEnv();
if (env != null) {
env.setRevert(true);
env.setRevertSourcePath(null);
}
+ super.setUp();
IProject project = getEnv().getWorkspace().getRoot().getProject(getTestingProjectName());
if (!project.exists()) {