aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-09 12:52:19 +0000
committermwebster <mwebster>2006-08-09 12:52:19 +0000
commit00851bff4ef25e75ae06876306aa90074da57a04 (patch)
tree47f72a1dd4bd2805f3cacb86b8b9f049096be93a /testing
parentdd10a2b22bb9db9db4fa1b0d9d1f7261eaf60cae (diff)
downloadaspectj-00851bff4ef25e75ae06876306aa90074da57a04.tar.gz
aspectj-00851bff4ef25e75ae06876306aa90074da57a04.zip
Bug 152982 "org.aspectj Restructure - Phase 2: Move tests" (fail XML test if JVM not supported)
Diffstat (limited to 'testing')
-rw-r--r--testing/newsrc/org/aspectj/testing/AjcTest.java5
-rw-r--r--testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java3
2 files changed, 5 insertions, 3 deletions
diff --git a/testing/newsrc/org/aspectj/testing/AjcTest.java b/testing/newsrc/org/aspectj/testing/AjcTest.java
index 93c95487c..04ef81eae 100644
--- a/testing/newsrc/org/aspectj/testing/AjcTest.java
+++ b/testing/newsrc/org/aspectj/testing/AjcTest.java
@@ -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() {
diff --git a/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java b/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java
index ed76b52c6..dcf663fe8 100644
--- a/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java
+++ b/testing/newsrc/org/aspectj/testing/XMLBasedAjcTestCase.java
@@ -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);
}