You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2005/07/04 14:15:12 UTC

svn commit: r209063 - /ant/sandbox/antlibs/antunit/trunk/src/etc/testcases/antunit/copy.xml

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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org