Browse Source

Testcase for SOS fails for me: the test calls the protected

buildCmdLine method which will throw an IllegalAccessException if the
testcase and the task class have been loaded by different classloaders.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271137 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
85d40e6436
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      build.xml

+ 5
- 3
build.xml View File

@@ -214,7 +214,7 @@
</and>
</condition>

<condition property="run.sqlexec.test">
<condition property="tests.and.ant.share.classloader">
<or>
<equals arg1="${junit.fork}" arg2="true" />
<equals arg1="${build.sysclasspath}" arg2="only" />
@@ -934,11 +934,13 @@
<!-- interactive test -->
<exclude name="org/apache/tools/ant/taskdefs/TestProcess.java" />

<!-- This test only passes if SQLExecTest and SQLExec have
<!-- These tests only passes if testcases and Ant classes have
been loaded by the same classloader - will throw
IllegalAccessExceptions otherwise. -->
<exclude name="org/apache/tools/ant/taskdefs/SQLExecTest.java"
unless="run.sqlexec.test" />
unless="tests.and.ant.share.classloader" />
<exclude name="${optional.package}/sos/SOSTest.java"
unless="tests.and.ant.share.classloader" />

</fileset>
</batchtest>


Loading…
Cancel
Save