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 16:13:17 UTC

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

Author: bodewig
Date: Mon Jul  4 07:13:16 2005
New Revision: 209085

URL: http://svn.apache.org/viewcvs?rev=209085&view=rev
Log:
Port more of copy's test suite

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=209085&r1=209084&r2=209085&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 07:13:16 2005
@@ -47,6 +47,7 @@
       </filterset>
     </copy>
     <concat><path path="copy.filter.out"/></concat>
+    <au:assertLogDoesntContain text="loop in tokens" level="debug"/>
   </target>
 
   <target name="infinitetest">
@@ -61,6 +62,7 @@
       </filterset>
     </copy>
     <concat><path path="copy.filter.out"/></concat>
+    <au:assertLogContains text="loop in tokens" level="debug"/>
   </target>
 
   <target name="test3">
@@ -141,9 +143,11 @@
     <au:assertFilesMatch actual="copytest1.tmp" expected="expected/utf-8"/>
   </target>
 
-  <target name="XtestMissingFileIgnore">
+  <target name="testMissingFileIgnore">
+    <property name="not-there" location="not-there"/>
     <copy file="not-there" tofile="copytest1.tmp"
       failonerror="false"/>
+    <au:assertLogContains text="Warning: Could not find file ${not-there} to copy."/>
   </target>
 
   <target name="testMissingFileBail">
@@ -154,10 +158,12 @@
     </au:expectfailure>
   </target>
 
-  <target name="XtestMissingDirIgnore">
+  <target name="testMissingDirIgnore">
+    <property name="not-there" location="not-there"/>
     <copy todir="copytest1dir" failonerror="false">
       <fileset dir="not-there"/>
     </copy>
+    <au:assertLogContains text="${not-there} not found."/>
   </target>
 
   <target name="testMissingDirBail">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org