You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Brown, Carlton" <Ca...@BellSouth.com> on 2006/01/27 22:29:13 UTC

junit task sometimes creates zero-length result files

The ant <junit> task seems to create zero-length output files for a few
of my unit test classes.   It does so without reporting any errors but
of course <junitreport> of course chokes on them complaining about
premature EOF.

 

Does anyone have any suggestions as to how to troubleshoot a problem
like this?

 

Thanks,

carlton


*****
"The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.  If you received this in error, please contact the sender and delete the material from all computers."  118


Re: junit task sometimes creates zero-length result files

Posted by Dominique Devienne <dd...@gmail.com>.
On 1/27/06, Brown, Carlton <Ca...@bellsouth.com> wrote:
> The ant <junit> task seems to create zero-length output files for a few
> of my unit test classes.   It does so without reporting any errors but
> of course <junitreport> of course chokes on them complaining about
> premature EOF.
> Does anyone have any suggestions as to how to troubleshoot a problem
> like this?

Does your Java use native code thru JNI? Forking each test? If a test
using native code crashes the forked JVM, <junit> would not properly
generate the output file. I believe Stefan fixed this in SVN head. But
I'm just guessing here, from prior experience. --DD

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


Re: junit task sometimes creates zero-length result files

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 27 Jan 2006, Carlton Brown <Ca...@bellsouth.com>
wrote:

> The ant <junit> task seems to create zero-length output files for a
> few of my unit test classes.

Which version of Ant are you using?  There have been some problems
with tests running into timeouts or crashing the VM, but they are
supposed to be fixed in 1.6.5.

Stefan

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