bodewig     2004/10/14 07:42:49

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTestRunner.java
  Log:
  Errors thrown before we fire startTestSuite cause problems in setOutAndErr
  
  Revision  Changes    Path
  1.53      +2 -2      
ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java
  
  Index: JUnitTestRunner.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- JUnitTestRunner.java      13 Oct 2004 10:23:30 -0000      1.52
  +++ JUnitTestRunner.java      14 Oct 2004 14:42:49 -0000      1.53
  @@ -235,7 +235,7 @@
           }
   
           Test suite = null;
  -        Exception exception = null;
  +        Throwable exception = null;
   
           try {
   
  @@ -268,7 +268,7 @@
                       suite = new TestSuite(testClass);
                   }
   
  -            } catch (Exception e) {
  +            } catch (Throwable e) {
                   retCode = ERRORS;
                   exception = e;
               }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to