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/Asse
rtionsTest.java
Modified:
ant/core/trunk/src/testcases/org/apache/tools/ant/types/Asse
rtionsTest.java
URL: http://svn.apa
che.org/viewcvs/ant/core/trunk/src/testcases/org/apache/tool
s/ant/types/AssertionsTest.java?rev=380872&r1=380871&
;r2=380872&view=diff
============================================================
==================
---
ant/core/trunk/src/testcases/org/apache/tools/ant/types/Asse
rtionsTest.java (original)
+++
ant/core/trunk/src/testcases/org/apache/tools/ant/types/Asse
rtionsTest.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
|