Port more of the copy tests
git-svn-id: https://svn.apache.org/repos/asf/ant/sandbox/antlibs/antunit/trunk@209063 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
74933f8b7e
commit
8017ac020a
|
|
@ -143,12 +143,15 @@ a=b=
|
|||
|
||||
<target name="XtestMissingFileIgnore">
|
||||
<copy file="not-there" tofile="copytest1.tmp"
|
||||
failonerror="false"/>
|
||||
failonerror="false"/>
|
||||
</target>
|
||||
|
||||
<target name="XtestMissingFileBail">
|
||||
<copy file="not-there" tofile="copytest1.tmp"
|
||||
failonerror="true"/>
|
||||
<target name="testMissingFileBail">
|
||||
<property name="not-there" location="not-there"/>
|
||||
<au:expectfailure expectedMessage="Warning: Could not find file ${not-there} to copy.">
|
||||
<copy file="not-there" tofile="copytest1.tmp"
|
||||
failonerror="true"/>
|
||||
</au:expectfailure>
|
||||
</target>
|
||||
|
||||
<target name="XtestMissingDirIgnore">
|
||||
|
|
@ -157,10 +160,13 @@ a=b=
|
|||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="XtestMissingDirBail">
|
||||
<copy todir="copytest1dir" failonerror="true">
|
||||
<fileset dir="not-there"/>
|
||||
</copy>
|
||||
<target name="testMissingDirBail">
|
||||
<property name="not-there" location="not-there"/>
|
||||
<au:expectfailure expectedMessage="${not-there} not found.">
|
||||
<copy todir="copytest1dir" failonerror="true">
|
||||
<fileset dir="not-there"/>
|
||||
</copy>
|
||||
</au:expectfailure>
|
||||
</target>
|
||||
|
||||
<target name="tearDown">
|
||||
|
|
|
|||
Loading…
Reference in New Issue