From 306cf3be1e0f7d786b484f21ce05c4f423c9564a Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 2 Mar 2017 02:35:39 +0400 Subject: [PATCH] Fix VcsRootProblemNotifierTest on Windows Mappings are stored in system-independent format. --- .../intellij/openapi/vcs/roots/VcsRootProblemNotifierTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/vcs-tests/testSrc/com/intellij/openapi/vcs/roots/VcsRootProblemNotifierTest.kt b/platform/vcs-tests/testSrc/com/intellij/openapi/vcs/roots/VcsRootProblemNotifierTest.kt index f888041e0490..5e54ae774c7e 100644 --- a/platform/vcs-tests/testSrc/com/intellij/openapi/vcs/roots/VcsRootProblemNotifierTest.kt +++ b/platform/vcs-tests/testSrc/com/intellij/openapi/vcs/roots/VcsRootProblemNotifierTest.kt @@ -31,6 +31,7 @@ package com.intellij.openapi.vcs.roots import com.intellij.openapi.extensions.Extensions +import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.util.io.FileUtil.toSystemDependentName import com.intellij.openapi.vcs.VcsConfiguration import com.intellij.openapi.vcs.VcsRootChecker @@ -113,7 +114,7 @@ class VcsRootProblemNotifierTest : VcsPlatformTest() { assertTrue(File(myProjectPath, DOT_MOCK).mkdir()) val subRoot = File(myProjectPath, "lib") assertTrue(File(subRoot, DOT_MOCK).mkdirs()) - VcsConfiguration.getInstance(myProject).addIgnoredUnregisteredRoots(listOf(subRoot.path)) + VcsConfiguration.getInstance(myProject).addIgnoredUnregisteredRoots(listOf(FileUtil.toSystemIndependentName(subRoot.path))) rootProblemNotifier.rescanAndNotifyIfNeeded()