From 63ec9634aada458661ddfb91be1ce3cefa5412f7 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Wed, 28 Nov 2012 17:27:25 +0100 Subject: [PATCH] Test fixed --- .../testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java index a91c107b259c..62c68c5aab4f 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/vfs/local/FileWatcherTest.java @@ -510,7 +510,7 @@ public class FileWatcherTest extends PlatformLangTestCase { File file2 = IoTestUtil.createTestFile(rootDir, "2.txt"); refresh(topDir); - File fsRoot = new File(SystemInfo.isUnix ? "/" : topDir.getPath().substring(0, topDir.getPath().indexOf(File.separatorChar))); + File fsRoot = new File(SystemInfo.isUnix ? "/" : topDir.getPath().substring(0, topDir.getPath().indexOf(File.separatorChar)) + "\\"); assertTrue("can't guess root of " + topDir, fsRoot.exists()); LocalFileSystem.WatchRequest request = watch(rootDir);