ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23150] - JUnitTask does not mark timed out tests as failed when forked
Date Sat, 13 Sep 2003 17:59:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23150>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23150

JUnitTask does not mark timed out tests as failed when forked

daveg@permabit.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |



------- Additional Comments From daveg@permabit.com  2003-09-13 17:59 -------
I'm sorry, but I'm unable to reproduce your results with a freshly
downloaded and built Ant 1.5.4 tree.  I'm using JUnit 3.8.1 if that perhaps
is the deciding factor.

I've slightly modified your build.xml as shown below:
<?xml version="1.0"?>
<project name="test" default="all">
   <target name="all">
       <junit fork="yes" timeout="5000" haltOnFailure="true" printsummary="yes">
           <classpath>
               <pathelement path="."/>
           </classpath>
           <test name="Test2" outfile="result">
               <formatter type="xml"/>
           </test>
       </junit>
   </target>
</project>


And I get the following output:
~/opt/ant/bin/ant -version
Apache Ant version 1.5.4 compiled on September 13 2003

~/quux $~/opt/ant/bin/ant 
Buildfile: build.xml

all:
    [junit] Running Test2

BUILD SUCCESSFUL
Total time: 8 seconds

If I remove the timeout on the same test (which simply has a 10 second delay in
it), I get:

~/opt/ant/bin/ant 
Buildfile: build.xml

all:
    [junit] Running Test2
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 10.167 sec

BUILD SUCCESSFUL
Total time: 13 seconds

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


Mime
View raw message