Browse Source

A timed out test is stil a test, PR 23645

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275442 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
0883e72093
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -1156,9 +1156,9 @@ public class JUnitTask extends Task {
OutputStream out) {
formatter.setOutput(out);
formatter.startTestSuite(test);
test.setCounts(0, 0, 1);
test.setCounts(1, 0, 1);
Test t = new Test() {
public int countTestCases() { return 0; }
public int countTestCases() { return 1; }
public void run(TestResult r) {
throw new AssertionFailedError("Timeout occurred");
}


Loading…
Cancel
Save