mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Win32fs disabled in tests
This commit is contained in:
+2
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user