From f047d92429d8c1b8e97d24a05193c4fe00d63b7b Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Fri, 11 Mar 2011 19:24:58 +0000 Subject: [PATCH] stab in the dark at hudson's jvm crashing git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1080732 13f79535-47bb-0310-9956-ffa450edef68 --- .../test-framework/org/apache/lucene/util/LuceneTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java index b8bfbf79a76..565190f370e 100644 --- a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java +++ b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java @@ -586,7 +586,7 @@ public abstract class LuceneTestCase extends Assert { // try to stop the thread: t.setUncaughtExceptionHandler(null); Thread.setDefaultUncaughtExceptionHandler(null); - t.interrupt(); + if (!t.getName().equals("main-EventThread")) t.interrupt(); try { t.join(THREAD_STOP_GRACE_MSEC); } catch (InterruptedException e) { e.printStackTrace(); }