Skip to content

Apache Lucene open-source search software

stab in the dark at hudson's jvm crashing

Robert Muirf047d92429d8
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(); }