ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r500782 - /ant/core/trunk/src/tests/antunit/taskdefs/dependset/test.xml
Date Sun, 28 Jan 2007 11:52:10 GMT
Author: jkf
Date: Sun Jan 28 03:52:09 2007
New Revision: 500782

URL: http://svn.apache.org/viewvc?view=rev&rev=500782
Log:
Test did not chatch the error I made, so updated the test that it does catch the error I made.

Modified:
    ant/core/trunk/src/tests/antunit/taskdefs/dependset/test.xml

Modified: ant/core/trunk/src/tests/antunit/taskdefs/dependset/test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/dependset/test.xml?view=diff&rev=500782&r1=500781&r2=500782
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/dependset/test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/dependset/test.xml Sun Jan 28 03:52:09 2007
@@ -46,19 +46,25 @@
   </target>
 
   <target name="test6">
-    <touch file="older.tmp" />
+    <touch file="sourceset_1.tmp" />
+  	<touch file="targetset_1.tmp" />
     <sleep seconds="3" />
-    <touch file="newer.tmp" />
+  	<touch file="sourceset_2.tmp" />
+  	<touch file="targetset_2.tmp" />
+  	<sleep seconds="2" />	
     <dependset>
       <sources>
-        <file file="newer.tmp" />
+        <filelist dir="." files="sourceset_1.tmp,sourceset_2.tmp" />
       </sources>
       <targets>
-        <filelist dir="." files="older.tmp" />
+        <filelist dir="." files="targetset_1.tmp,targetset_2.tmp" />
       </targets>
     </dependset>
     <au:assertFalse>
-      <available file="older.tmp" />
+      <available file="targetset_1.tmp" />
+    </au:assertFalse>
+    <au:assertFalse>
+      <available file="targetset_2.tmp" />
     </au:assertFalse>
   </target>
 
@@ -109,5 +115,10 @@
     <delete file="test9.tmp" />
     <delete file="older.tmp" />
     <delete file="newer.tmp" />
+  	<delete file="sourceset_1.tmp" />
+   	<delete file="sourceset_2.tmp" />
+  	<delete file="targetset_1.tmp" />
+  	<delete file="targetset_2.tmp" />
+  	
   </target>
 </project>



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


Mime
View raw message