You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/03/01 18:00:35 UTC

DO NOT REPLY [Bug 45536] JUnit PlainJUnitResultFormatter goes OOM at the end of a run

https://issues.apache.org/bugzilla/show_bug.cgi?id=45536

--- Comment #1 from Steve Loughran <st...@apache.org> 2010-03-01 17:00:34 UTC ---
Created an attachment (id=25075)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25075)
patch for the JUnitTestRunner and PlainJUnitResultFormatter

Patch handles OOM gracefully in the test runner by intercepting that part of
the process and replacing it with a string warning of memory problems.

At the output formatter avoids building everything up into one large string to
output, instead every stream is put out separately and the buffers flushed,
this makes it much more robust. 

No tests, not unless you want to create 40MB worth of log4j output.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.