From bee0f1fb5895a920d15696253699b772f50794be Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Sat, 25 Jun 2011 10:44:27 +0000 Subject: [PATCH] add warning if you use tests.iter > 1 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1139513 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/util/LuceneTestCase.java | 5 +++++ 1 file changed, 5 insertions(+) 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 d8c4cc46e24..afef6dadc44 100644 --- a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java +++ b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java @@ -633,6 +633,11 @@ public abstract class LuceneTestCase extends Assert { for (Thread t : Thread.getAllStackTraces().keySet()) { rogueThreads.put(t, true); } + + if (TEST_ITER > 1) { + System.out.println("WARNING: you are using -Dtests.iter=n where n > 1, not all tests support this option."); + System.out.println("Some may crash or fail: this is not a bug."); + } } /**