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,7 +124,10 @@ final class TestRuleTemporaryFilesCleanup extends TestRuleAdapter {
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) {