ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r380872 - /ant/core/trunk/src/testcases/org/apache/tools/ant/types/AssertionsTest.java
Date Sat, 25 Feb 2006 00:22:25 GMT
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


Mime
View raw message