Browse Source

Correct test failure when running with -ea.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@380872 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 19 years ago
parent
commit
2a38034c1a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/testcases/org/apache/tools/ant/types/AssertionsTest.java

+ 3
- 0
src/testcases/org/apache/tools/ant/types/AssertionsTest.java View File

@@ -85,6 +85,9 @@ public class AssertionsTest extends BuildFileTest {
} }


public void testNofork() { public void testNofork() {
if (AssertionsTest.class.desiredAssertionStatus()) {
return; // ran Ant tests with -ea and this would fail spuriously
}
expectLogContaining("test-nofork", expectLogContaining("test-nofork",
"Assertion statements are currently ignored in non-forked mode"); "Assertion statements are currently ignored in non-forked mode");
} }


Loading…
Cancel
Save