Apache Solr open-source search software
Change also the default LuceneTestCase to override runBare() instead of runTest(). This enables tests, to also monitor failures in random during setUp() and tearDown().
Uwe Schindler47ddf173a7d5
diff --git a/src/test/org/apache/lucene/util/LuceneTestCase.java b/src/test/org/apache/lucene/util/LuceneTestCase.javaindex 28430b4bdda..3b938067725 100644--- a/src/test/org/apache/lucene/util/LuceneTestCase.java+++ b/src/test/org/apache/lucene/util/LuceneTestCase.java@@ -199,10 +199,11 @@ public abstract class LuceneTestCase extends TestCase {return new Random(seed);}- protected void runTest() throws Throwable {+ // @Override+ public void runBare() throws Throwable {try {seed = null;- super.runTest();+ super.runBare();} catch (Throwable e) {if (seed != null) {System.out.println("NOTE: random seed of testcase '" + getName() + "' was: " + seed);