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
This commit is contained in:
Robert Muir 2011-06-25 10:44:27 +00:00
parent e3c74ec78b
commit bee0f1fb58
1 changed files with 5 additions and 0 deletions

View File

@ -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.");
}
}
/**