if a test is annotated to not use simpletext/memory, don't pick simpletext

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1337327 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-05-11 18:54:19 +00:00
parent 8656182135
commit b6e6b94b08
1 changed files with 1 additions and 1 deletions

View File

@ -420,7 +420,7 @@ public abstract class LuceneTestCase extends Assert {
codec = Codec.forName("Lucene3x");
assert (codec instanceof PreFlexRWCodec) : "fix your classpath to have tests-framework.jar before lucene-core.jar";
PREFLEX_IMPERSONATION_IS_ACTIVE = true;
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9)) {
} else if ("SimpleText".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 9 && !useNoMemoryExpensiveCodec)) {
codec = new SimpleTextCodec();
} else if ("Appending".equals(TEST_CODEC) || ("random".equals(TEST_CODEC) && randomVal == 8)) {
codec = new AppendingCodec();