Author: bodewig Date: Mon Jul 4 05:15:10 2005 New Revision: 209063 URL: http://svn.apache.org/viewcvs?rev=209063&view=rev Log: Port more of the copy tests
Modified: ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/antunit/copy.xml Modified: ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/antunit/copy.xml URL: http://svn.apache.org/viewcvs/ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/antunit/copy.xml?rev=209063&r1=209062&r2=209063&view=diff ============================================================================== --- ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/antunit/copy.xml (original) +++ ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/antunit/copy.xml Mon Jul 4 05:15:10 2005 @@ -143,12 +143,15 @@ <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 @@ </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"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]