diff options
| author | Nicolas LaleveĢe <nicolas.lalevee@hibnet.org> | 2018-04-13 21:54:19 +0200 |
|---|---|---|
| committer | Stefan Bodewig <bodewig@apache.org> | 2018-04-14 18:31:08 +0200 |
| commit | b38bf68f5c8a29ba7befa0760251f5f61d25ae32 (patch) | |
| tree | edabcaa0dafd0b14fcf1e13505f6ba4fc9f7d699 /src/etc/testcases/taskdefs/optional | |
| parent | 50a1d4aea01b435264c2c9fadf807d61076c189a (diff) | |
| download | ant-b38bf68f5c8a29ba7befa0760251f5f61d25ae32.tar.gz | |
fix incorrect warning in the junit task when includeAntRuntime="no"
fixed by making the classloader used by checkForkedPath behave like a real forked classpath, thus completely isolated from the launching jvm
Diffstat (limited to 'src/etc/testcases/taskdefs/optional')
| -rw-r--r-- | src/etc/testcases/taskdefs/optional/junit.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/etc/testcases/taskdefs/optional/junit.xml b/src/etc/testcases/taskdefs/optional/junit.xml index cc66e20e5..34d8cb2b2 100644 --- a/src/etc/testcases/taskdefs/optional/junit.xml +++ b/src/etc/testcases/taskdefs/optional/junit.xml @@ -358,4 +358,19 @@ </junit> </target> + <target name="testCheckForkedPath"> + <property name="includeantruntime" value="yes" /> + <!-- duplicate the Ant classes into a jar --> + <jar destfile="${output}/ant.jar" basedir="${antclasses}" /> + <junit fork="yes" haltonerror="true" haltonfailure="true" + showoutput="${showoutput}" includeantruntime="${includeantruntime}"> + <test name="org.example.junit.Output" /> + <classpath> + <pathelement location="../../../../../build/testcases" /> + <pathelement location="${junitjar}" /> + <pathelement location="${output}/ant.jar" /> + </classpath> + </junit> + </target> + </project> |
