소스 검색

fixes a minor bug in a test case.

tags/rel_3_23_0_ga
chibash 6 년 전
부모
커밋
040a9cfc26
4개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 12
    0
      build.xml
  2. BIN
      javassist.jar
  3. 1
    1
      src/test/javassist/JvstTest.java
  4. 0
    0
      src/test/resources/empty.jar

+ 12
- 0
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">

BIN
javassist.jar 파일 보기


+ 1
- 1
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());
}


+ 0
- 0
src/test/resources/empty.jar 파일 보기


Loading…
취소
저장