You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by jg...@apache.org on 2006/02/25 01:22:25 UTC

svn commit: r380872 - /ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java

Author: jglick
Date: Fri Feb 24 16:22:21 2006
New Revision: 380872

URL: http://svn.apache.org/viewcvs?rev=380872&view=rev
Log:
Correct test failure when running with -ea.

Modified:
    ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java

Modified: ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java?rev=380872&r1=380871&r2=380872&view=diff
==============================================================================
--- ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java (original)
+++ ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java Fri Feb 24 16:22:21 2006
@@ -85,6 +85,9 @@
     }
 
     public void testNofork() {
+        if (AssertionsTest.class.desiredAssertionStatus()) {
+            return; // ran Ant tests with -ea and this would fail spuriously
+        }
         expectLogContaining("test-nofork",
                 "Assertion statements are currently ignored in non-forked mode");
     }



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