aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2018-05-08 09:24:19 +0900
committerchibash <chiba@javassist.org>2018-05-08 09:24:19 +0900
commit040a9cfc267dde60b0977227a479a939a4e828f6 (patch)
tree4f82ac315a84e4c789d1855f230850073f898e62
parent1108f94e71f78b8fadef162611636127e9948af8 (diff)
downloadjavassist-040a9cfc267dde60b0977227a479a939a4e828f6.tar.gz
javassist-040a9cfc267dde60b0977227a479a939a4e828f6.zip
fixes a minor bug in a test case.
-rw-r--r--build.xml12
-rw-r--r--javassist.jarbin759215 -> 759661 bytes
-rw-r--r--src/test/javassist/JvstTest.java2
-rw-r--r--[-rwxr-xr-x]src/test/resources/empty.jarbin3360 -> 3360 bytes
4 files changed, 13 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 5273c494..4300d7ac 100644
--- a/build.xml
+++ b/build.xml
@@ -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">
diff --git a/javassist.jar b/javassist.jar
index 232bb340..e009d8e6 100644
--- a/javassist.jar
+++ b/javassist.jar
Binary files differ
diff --git a/src/test/javassist/JvstTest.java b/src/test/javassist/JvstTest.java
index ff58106a..e2f9211f 100644
--- a/src/test/javassist/JvstTest.java
+++ b/src/test/javassist/JvstTest.java
@@ -79,7 +79,7 @@ public class JvstTest extends JvstTestRoot {
// Assert that it is possible to delete the jar file.
// On Windows deleting an open file will fail, while on on Mac/Linux this is always possible.
- // This check will thus only fail on Windos if the file is still open.
+ // This check will thus only fail on Windows if the file is still open.
assertTrue(jarFile.delete());
}
diff --git a/src/test/resources/empty.jar b/src/test/resources/empty.jar
index 3a12dbae..3a12dbae 100755..100644
--- a/src/test/resources/empty.jar
+++ b/src/test/resources/empty.jar
Binary files differ