mirror of https://github.com/apache/lucene.git
don't mock windows on windows
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1642486 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
83299a07e3
commit
cddb06dde3
|
@ -124,9 +124,12 @@ final class TestRuleTemporaryFilesCleanup extends TestRuleAdapter {
|
||||||
fs = new HandleLimitFS(fs, MAX_OPEN_FILES).getFileSystem(null);
|
fs = new HandleLimitFS(fs, MAX_OPEN_FILES).getFileSystem(null);
|
||||||
// windows is currently slow
|
// windows is currently slow
|
||||||
if (random.nextInt(10) == 0) {
|
if (random.nextInt(10) == 0) {
|
||||||
|
// don't try to emulate windows on windows: they don't get along
|
||||||
|
if (!Constants.WINDOWS) {
|
||||||
fs = new WindowsFS(fs).getFileSystem(null);
|
fs = new WindowsFS(fs).getFileSystem(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (LuceneTestCase.VERBOSE) {
|
if (LuceneTestCase.VERBOSE) {
|
||||||
System.out.println("filesystem: " + fs.provider());
|
System.out.println("filesystem: " + fs.provider());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue