aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ajcHarnessTests.xml
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-05-20 19:12:02 +0000
committerwisberg <wisberg>2005-05-20 19:12:02 +0000
commit43a96989f05d82bbb5cb5aec764946a87dcd597e (patch)
tree3d746a9a9b6df3fdd0f9e97992c3e2f64b6960fd /tests/ajcHarnessTests.xml
parentce06e91f51bba7a9d92642d9ceb9f51d7a748015 (diff)
downloadaspectj-43a96989f05d82bbb5cb5aec764946a87dcd597e.tar.gz
aspectj-43a96989f05d82bbb5cb5aec764946a87dcd597e.zip
pure binary weaving example
Diffstat (limited to 'tests/ajcHarnessTests.xml')
-rw-r--r--tests/ajcHarnessTests.xml38
1 files changed, 37 insertions, 1 deletions
diff --git a/tests/ajcHarnessTests.xml b/tests/ajcHarnessTests.xml
index fc393ca3c..a11ba3ba7 100644
--- a/tests/ajcHarnessTests.xml
+++ b/tests/ajcHarnessTests.xml
@@ -175,6 +175,19 @@
<run class="AspectMain"/>
</ajc-test>
+ <ajc-test dir="harness/classpathTest"
+ title="pass pure binary weaving, with jars/dir on classpath"
+ keywords="purejava">
+ <compile classpath="classesDir,jars/required.jar"
+ files="Main.java"
+ options="-Xreweavable"
+ outjar="main.zip"/>
+ <compile classpath="classesDir,jars/required.jar"
+ aspectpath="jars/requiredAspects.jar,jars/AspectMain.jar"
+ files="main.zip"/>
+ <run class="Main"/>
+ </ajc-test>
+
<ajc-test dir="harness" keywords="incremental-test"
title="pass minimal purejava sourceroots test">
<compile sourceroots="sourceroot"/>
@@ -608,12 +621,35 @@
<run class="Main" aspectpath="out.jar" classpath="cl.zip"/>
</ajc-test>
-<!-- reproduce hang from blocking IO read at JavaRun.java
+<!--
+
+reproduce hang from blocking IO read at JavaRun.java
<ajc-test dir="harness/fork"
title="pass fork-Error-ignored Main runs, throws Error, expects Error">
<compile files="MainWriter.java"/>
<run class="MainWriter" options="Error" fork="true" exception="Error"/>
</ajc-test>
+
+
+unforked exception check is failing.
+Also forked/unforked throw different exceptions
+
+ <ajc-test dir="harness/classpathTest"
+ title="pass specify jars and directories on classpath"
+ keywords="purejava">
+ <compile classpath="classesDir,jars/required.jar"
+ files="Main.java"
+ options="-Xreweavable"
+ outjar="main.zip"/>
+ <run class="Main" fork="true" exception="NoClassDefFoundError"/>
+ <run class="Main" fork="false" exception="java.lang.ClassNotFoundException"/>
+ <run class="Main" classpath="main.zip"/>
+ <compile classpath="classesDir,jars/required.jar"
+ files="main.zip"/>
+ <run class="Main"/>
+ </ajc-test>
+
+
-->
</suite>