From: SourceForge.net <no...@so...> - 2007-03-22 19:00:42
|
Bugs item #1427753, was opened at 2006-02-08 12:54 Message generated for change (Settings changed) made by dsaff You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115278&aid=1427753&group_id=15278 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Knut Radloff (knutr) Assigned to: Nobody/Anonymous (nobody) Summary: Handle OutOfMemoryError immediately in TestResult Initial Comment: An OutOfMemoryError can prevent the JUnit test from running to completion due to lack of memory. Currently (in version 3.8.1) junit.framework.TestResult.runProtected catches OutOfMemoryErrors as part of the Throwable catch clause and continues. It should catch OutOfMemoryError separately and either just rethrow it or report the error in the JUnit error list and stop the test run. I'm including a patch for the latter solution. Also included is a test case that demonstrates that JUnit is stopped when an OutOfMemoryError occurs in one of the tests. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115278&aid=1427753&group_id=15278 |