ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java
Date Wed, 22 Oct 2003 14:38:51 GMT
bodewig     2003/10/22 07:38:51

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTask.java
  Log:
  Make properties available in timed-out tests, PR 23935
  
  Revision  Changes    Path
  1.88      +3 -2      ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  
  Index: JUnitTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java,v
  retrieving revision 1.87
  retrieving revision 1.88
  diff -u -r1.87 -r1.88
  --- JUnitTask.java	20 Oct 2003 10:48:04 -0000	1.87
  +++ JUnitTask.java	22 Oct 2003 14:38:50 -0000	1.88
  @@ -1129,6 +1129,8 @@
   
       private void logTimeout(FormatterElement[] feArray, JUnitTest test) {
           createClassLoader();
  +        test.setCounts(1, 0, 1);
  +        test.setProperties(getProject().getProperties());
           for (int i = 0; i < feArray.length; i++) {
               FormatterElement fe = feArray[i];
               File outFile = getOutput(fe, test);
  @@ -1158,7 +1160,6 @@
                               OutputStream out) {
           formatter.setOutput(out);
           formatter.startTestSuite(test);
  -        test.setCounts(1, 0, 1);
           Test t = new Test() {
               public int countTestCases() { return 1; }
               public void run(TestResult r) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message