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:
Robert Muir 2014-11-29 23:23:55 +00:00
parent 83299a07e3
commit cddb06dde3
1 changed files with 4 additions and 1 deletions

View File

@ -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());
} }