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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]