Browse Source

Errors thrown before we fire startTestSuite cause problems in setOutAndErr

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

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

@@ -235,7 +235,7 @@ public class JUnitTestRunner implements TestListener {
}

Test suite = null;
Exception exception = null;
Throwable exception = null;

try {

@@ -268,7 +268,7 @@ public class JUnitTestRunner implements TestListener {
suite = new TestSuite(testClass);
}

} catch (Exception e) {
} catch (Throwable e) {
retCode = ERRORS;
exception = e;
}


Loading…
Cancel
Save