From 6c06dfe43c55e2aacba194c3ea776e6e9f4fd0e6 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Mon, 16 Nov 2009 19:11:54 +0300 Subject: [PATCH] Win32fs disabled in tests --- .../intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java index 5afbe941596b..a3cd8b45dc0e 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java @@ -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(); }