From 2541fba5db133c97b867435e47783ce15db40cef Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 9 Nov 2011 16:33:13 +0000 Subject: [PATCH] include file.encoding in 'reproduce-with' in case machines have different encodings and there is an encoding bug git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1199832 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/lucene/util/LuceneTestCase.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java index 1693aaeb011..a50e17adcc5 100644 --- a/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java +++ b/lucene/src/test-framework/java/org/apache/lucene/util/LuceneTestCase.java @@ -1305,6 +1305,9 @@ public abstract class LuceneTestCase extends Assert { if (!TEST_DIRECTORY.equals("random")) sb.append(" -Dtests.directory=").append(TEST_DIRECTORY); if (RANDOM_MULTIPLIER > 1) sb.append(" -Dtests.multiplier=").append(RANDOM_MULTIPLIER); if (TEST_NIGHTLY) sb.append(" -Dtests.nightly=true"); + // TODO we can't randomize this yet (it drives ant crazy) but this makes tests reproduceable + // in case machines have different default charsets... + sb.append(" -Dfile.encoding=" + System.getProperty("file.encoding")); return sb.toString(); }