From a9642318820446325788a2ab53330db38ec9e42b Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sat, 24 Jul 2010 14:31:22 +0000 Subject: [PATCH] LUCENE-2554: pick a random codec for each unit test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/preflexfixes@978877 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/test/org/apache/lucene/util/_TestUtil.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lucene/src/test/org/apache/lucene/util/_TestUtil.java b/lucene/src/test/org/apache/lucene/util/_TestUtil.java index 3e6be0a544b..32ecaf1ef10 100644 --- a/lucene/src/test/org/apache/lucene/util/_TestUtil.java +++ b/lucene/src/test/org/apache/lucene/util/_TestUtil.java @@ -240,8 +240,10 @@ public class _TestUtil { /** gets the codec to run tests with */ public static String getTestCodec() { - // nocommit: should we default to random? - return System.getProperty("tests.codec", "Standard"); + // by default we randomly pick a different codec for + // each test case (non-J4 tests) and each test class (J4 + // tests) + return System.getProperty("tests.codec", "random"); } public static CodecProvider alwaysCodec(final Codec c) {