Win32fs disabled in tests

This commit is contained in:
Dmitry Avdeev
2009-11-16 19:11:54 +03:00
parent 9f60e9d496
commit 6c06dfe43c
@@ -19,6 +19,7 @@
*/
package com.intellij.openapi.vfs.newvfs.persistent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.vfs.LocalFileSystem;
@@ -58,7 +59,7 @@ public class RefreshWorker {
}
else {
if (delegate.getProtocol().equals(LocalFileSystem.PROTOCOL) && SystemInfo.isWindows && root.isDirectory() &&
Registry.is("filesystem.useNative")) {
Registry.is("filesystem.useNative") && !ApplicationManager.getApplication().isUnitTestMode()) {
delegate = Win32LocalFileSystem.getWin32Instance();
}