diff options
author | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2012-12-28 20:56:45 +0100 |
---|---|---|
committer | Marc R. Hoffmann <hoffmann@mountainminds.com> | 2012-12-28 20:56:45 +0100 |
commit | adf2bf660e12b3b284eb80965328802101cf6762 (patch) | |
tree | 79a4a6c069608227dd3cd45faa7bf19bc555af69 /org.jacoco.ant.test | |
parent | 7ba3a37d8250044164f5b76a00f779f4f7d30459 (diff) | |
download | jacoco-adf2bf660e12b3b284eb80965328802101cf6762.tar.gz |
Allow (recursive) instrumentation of archives.
Diffstat (limited to 'org.jacoco.ant.test')
-rw-r--r-- | org.jacoco.ant.test/src/org/jacoco/ant/InstrumentTaskTest.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.jacoco.ant.test/src/org/jacoco/ant/InstrumentTaskTest.xml b/org.jacoco.ant.test/src/org/jacoco/ant/InstrumentTaskTest.xml index fd23caa7..0e2170fc 100644 --- a/org.jacoco.ant.test/src/org/jacoco/ant/InstrumentTaskTest.xml +++ b/org.jacoco.ant.test/src/org/jacoco/ant/InstrumentTaskTest.xml @@ -34,7 +34,8 @@ <target name="testInstrumentInvalidClassFile"> <mkdir dir="${temp.dir}/output"/> <property name="broken.file" location="${temp.dir}/broken.class"/> - <echo file="${broken.file}">Not a class.</echo> + <copy file="${org.jacoco.ant.instrumentTaskTest.classes.dir}/TestTargetInDefault.class" tofile="${broken.file}"/> + <truncate file="${broken.file}" length="8"/> <au:expectfailure expectedMessage="Error while instrumenting ${broken.file}"> <jacoco:instrument destdir="${temp.dir}/output"> <fileset dir="${temp.dir}" includes="broken.class"/> |