aboutsummaryrefslogtreecommitdiffstats
path: root/ajde
diff options
context:
space:
mode:
authoraclement <aclement>2005-03-24 11:01:37 +0000
committeraclement <aclement>2005-03-24 11:01:37 +0000
commitb967da32c016fa053fcef0e887b24ca3e2fda8c9 (patch)
treec68a598662fba229ef07f727bc3d2528600b91c6 /ajde
parentd0b3d1178023c00a3ab95803a0b4938e31923a5e (diff)
downloadaspectj-b967da32c016fa053fcef0e887b24ca3e2fda8c9.tar.gz
aspectj-b967da32c016fa053fcef0e887b24ca3e2fda8c9.zip
guard on structure model dumping.
Diffstat (limited to 'ajde')
-rw-r--r--ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java b/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java
index f94ff660f..108c17866 100644
--- a/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java
+++ b/ajde/testsrc/org/aspectj/ajde/internal/AspectJBuildManagerTest.java
@@ -15,6 +15,8 @@ package org.aspectj.ajde.internal;
import junit.framework.*;
import org.aspectj.ajde.*;
+import org.aspectj.asm.AsmManager;
+
import java.io.*;
/**
@@ -33,6 +35,8 @@ public class AspectJBuildManagerTest extends AjdeTestCase {
}
public void testSequence() {
+ AsmManager.dumpModelPostBuild=true; // or you wont get a .ajsym file
+ try {
assertTrue("initialization", ideManager != null);
assertTrue("compile of non-existing build config success", !testerBuildListener.getBuildSucceeded());
// XXX should fail? empty configs fail b/c no sources specified
@@ -52,7 +56,10 @@ public class AspectJBuildManagerTest extends AjdeTestCase {
file.delete();
} else {
assertTrue("expected .ajsym" + file, false);
- }
+ }
+ } finally {
+ AsmManager.dumpModelPostBuild=false;
+ }
}
protected void setUp() throws Exception {