ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r539331 - /ant/core/trunk/src/tests/antunit/taskdefs/retry-test.xml
Date Fri, 18 May 2007 08:59:53 GMT
Author: kevj
Date: Fri May 18 01:59:52 2007
New Revision: 539331

URL: http://svn.apache.org/viewvc?view=rev&rev=539331
Log:
-extra test

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

Modified: ant/core/trunk/src/tests/antunit/taskdefs/retry-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/retry-test.xml?view=diff&rev=539331&r1=539330&r2=539331
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/retry-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/retry-test.xml Fri May 18 01:59:52 2007
@@ -2,7 +2,7 @@
 <project name="retry-test" default="antunit" xmlns:au="antlib:org.apache.ant.antunit">
   <import file="../antunit-base.xml"/>
 	
-  <target name="test-retry">
+  <target name="test-fail-and-retry">
   	<property name="i" value="3"/>
   	<property name="dest" value="${java.io.tmpdir}/dest"/>
   	<!-- just in case this ever becomes a legit url... -->
@@ -13,5 +13,14 @@
 		</retry>
 	</au:expectfailure>
   	<au:assertLogContains text="Attempt [1] error occured, retrying..."/>
+  </target>
+	
+  <target name="test-success">
+  	<property name="i" value="3"/>
+	<property name="dest" value="${java.io.tmpdir}/dest"/>
+  	<retry retrycount="${i}">
+  	  <touch file="${dest}"/>
+  	</retry>
+  	<au:assertLogDoesntContain text="Attempt [1] error occured, retrying..."/>
   </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