Browse Source

Bug 152982 "org.aspectj Restructure - Phase 2: Move tests" (fail XML test if JVM not supported)

tags/post_pr_153572
mwebster 18 years ago
parent
commit
00851bff4e

+ 3
- 2
testing/newsrc/org/aspectj/testing/AjcTest.java View File

@@ -57,8 +57,8 @@ public class AjcTest {
step.setTest(this);
}
public void runTest(AjcTestCase testCase) {
if (!canRunOnThisVM()) return;
public boolean runTest(AjcTestCase testCase) {
if (!canRunOnThisVM()) return false;
try {
System.out.print("TEST: " + getTitle() + "\t");
for (Iterator iter = testSteps.iterator(); iter.hasNext();) {
@@ -70,6 +70,7 @@ public class AjcTest {
} finally {
System.out.println("DONE");
}
return true;
}
public boolean canRunOnThisVM() {

+ 2
- 1
testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java View File

@@ -108,7 +108,8 @@ public abstract class XMLBasedAjcTestCase extends AjcTestCase {
}
}
ajc.setShouldEmptySandbox(true);
currentTest.runTest(this);
boolean run = currentTest.runTest(this);
assertTrue("Test not run",run);
if (clearTest) {
testMap.remove(title);
}

Loading…
Cancel
Save