print seed/debug info on uncaught exceptions

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-12-09 18:23:10 +00:00
parent c2305ff91b
commit 621cd9955e
1 changed files with 1 additions and 0 deletions

View File

@ -470,6 +470,7 @@ public abstract class LuceneTestCase extends Assert {
try {
if (!uncaughtExceptions.isEmpty()) {
testsFailed = true;
System.err.println("The following exceptions were thrown by threads:");
for (UncaughtExceptionEntry entry : uncaughtExceptions) {
System.err.println("*** Thread: " + entry.thread.getName() + " ***");