ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r821803 - /ant/core/trunk/src/tests/antunit/taskdefs/fail-test.xml
Date Mon, 05 Oct 2009 14:02:09 GMT
Author: bodewig
Date: Mon Oct  5 14:02:08 2009
New Revision: 821803

URL: http://svn.apache.org/viewvc?rev=821803&view=rev
Log:
behavior when property value is neither true nor false

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

Modified: ant/core/trunk/src/tests/antunit/taskdefs/fail-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/taskdefs/fail-test.xml?rev=821803&r1=821802&r2=821803&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/taskdefs/fail-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/taskdefs/fail-test.xml Mon Oct  5 14:02:08 2009
@@ -27,6 +27,19 @@
     <fail if="${if}"/>
   </target>
 
+  <target name="testIfSet">
+    <property name="if" value="whatever"/>
+    <au:expectfailure>
+      <fail unless="${if}"/>
+    </au:expectfailure>
+    <fail if="${if}"/>
+
+    <fail unless="if"/>
+    <au:expectfailure>
+      <fail if="if"/>
+    </au:expectfailure>
+  </target>
+
   <target name="testIfTrue">
     <property name="if" value="true"/>
     <fail unless="${if}"/>



Mime
View raw message