lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r978877 - /lucene/dev/branches/preflexfixes/lucene/src/test/org/apache/lucene/util/_TestUtil.java
Date Sat, 24 Jul 2010 14:31:23 GMT
Author: mikemccand
Date: Sat Jul 24 14:31:22 2010
New Revision: 978877

URL: http://svn.apache.org/viewvc?rev=978877&view=rev
Log:
LUCENE-2554: pick a random codec for each unit test

Modified:
    lucene/dev/branches/preflexfixes/lucene/src/test/org/apache/lucene/util/_TestUtil.java

Modified: lucene/dev/branches/preflexfixes/lucene/src/test/org/apache/lucene/util/_TestUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/preflexfixes/lucene/src/test/org/apache/lucene/util/_TestUtil.java?rev=978877&r1=978876&r2=978877&view=diff
==============================================================================
--- lucene/dev/branches/preflexfixes/lucene/src/test/org/apache/lucene/util/_TestUtil.java
(original)
+++ lucene/dev/branches/preflexfixes/lucene/src/test/org/apache/lucene/util/_TestUtil.java
Sat Jul 24 14:31:22 2010
@@ -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) {



Mime
View raw message