diff options
author | chibash <chiba@javassist.org> | 2018-05-08 09:24:19 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2018-05-08 09:24:19 +0900 |
commit | 040a9cfc267dde60b0977227a479a939a4e828f6 (patch) | |
tree | 4f82ac315a84e4c789d1855f230850073f898e62 /build.xml | |
parent | 1108f94e71f78b8fadef162611636127e9948af8 (diff) | |
download | javassist-040a9cfc267dde60b0977227a479a939a4e828f6.tar.gz javassist-040a9cfc267dde60b0977227a479a939a4e828f6.zip |
fixes a minor bug in a test case.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -16,6 +16,7 @@ <property name="build.dir" value="${basedir}/target"/> <property name="build.classes.dir" value="${build.dir}/classes"/> <property name="test.src.dir" value="${basedir}/src/test"/> + <property name="test.lib.dir" value="${test.src.dir}/resources"/> <property name="test.build.dir" value="${build.dir}/test-classes"/> <property name="test.run.dir" value="${build.dir}/runtest"/> <property name="test.reports.dir" value = "${build.dir}/test-output"/> @@ -39,6 +40,7 @@ <path id="test.classpath"> <pathelement location="${test.build.dir}"/> + <pathelement location="${test.lib.dir}"/> <pathelement location="${lib.dir}/junit.jar"/> <pathelement location="${lib.dir}/hamcrest.jar"/> <pathelement location="${build.classes.dir}"/> @@ -100,15 +102,23 @@ </target> <target name="runtest" depends="jar,test-compile"> + <copy file="${test.lib.dir}/empty.jar" + tofile="${test.lib.dir}/emptyorig.jar" + preservelastmodified="true" /> <junit fork="true" printsummary="true" dir="${test.run.dir}"> <jvmarg value="-XX:-FailOverToOldVerifier"/> <classpath refid="test.classpath"/> <formatter type="xml" extension=".xml"/> <test name="javassist.JvstTest" outfile="TestLog" /> </junit> + <move file="${test.lib.dir}/emptyorig.jar" + tofile="${test.lib.dir}/empty.jar" /> </target> <target name="runtest9" depends="jar,test-compile"> + <copy file="${test.lib.dir}/empty.jar" + tofile="${test.lib.dir}/emptyorig.jar" + preservelastmodified="true" /> <junit fork="true" printsummary="true" dir="${test.run.dir}"> <jvmarg line="--add-opens java.base/java.lang=ALL-UNNAMED" /> <jvmarg value="-XX:-FailOverToOldVerifier"/> @@ -116,6 +126,8 @@ <formatter type="xml" extension=".xml"/> <test name="javassist.JvstTest" outfile="TestLog" /> </junit> + <move file="${test.lib.dir}/emptyorig.jar" + tofile="${test.lib.dir}/empty.jar" /> </target> <target name="sample" depends="compile"> |