You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/11/30 00:23:55 UTC
svn commit: r1642486 -
/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleTemporaryFilesCleanup.java
Author: rmuir
Date: Sat Nov 29 23:23:55 2014
New Revision: 1642486
URL: http://svn.apache.org/r1642486
Log:
don't mock windows on windows
Modified:
lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleTemporaryFilesCleanup.java
Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleTemporaryFilesCleanup.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleTemporaryFilesCleanup.java?rev=1642486&r1=1642485&r2=1642486&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleTemporaryFilesCleanup.java (original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleTemporaryFilesCleanup.java Sat Nov 29 23:23:55 2014
@@ -124,7 +124,10 @@ final class TestRuleTemporaryFilesCleanu
fs = new HandleLimitFS(fs, MAX_OPEN_FILES).getFileSystem(null);
// windows is currently slow
if (random.nextInt(10) == 0) {
- fs = new WindowsFS(fs).getFileSystem(null);
+ // don't try to emulate windows on windows: they don't get along
+ if (!Constants.WINDOWS) {
+ fs = new WindowsFS(fs).getFileSystem(null);
+ }
}
}
if (LuceneTestCase.VERBOSE) {