diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/project/ProjectUtilTest.kt b/platform/platform-tests/testSrc/com/intellij/openapi/project/ProjectUtilTest.kt index 97cb27a492ae..f3eff2deff32 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/project/ProjectUtilTest.kt +++ b/platform/platform-tests/testSrc/com/intellij/openapi/project/ProjectUtilTest.kt @@ -18,11 +18,13 @@ package com.intellij.openapi.project import com.intellij.openapi.application.appSystemDir import com.intellij.testFramework.PlatformTestCase import com.intellij.testFramework.assertions.Assertions.assertThat +import java.io.File class ProjectUtilTest : PlatformTestCase() { fun testDoNotUseNameAsHashPrefixForIpr() { val cachePath = appSystemDir.relativize(project.getProjectCachePath("foo")).toString() + // remove location hash suffix because it is not constant value (depends on machine) assertThat(cachePath.substring(0, cachePath.lastIndexOf('.'))) - .isEqualTo("foo/testdonotusenameashashprefixforipr") + .isEqualTo("foo${File.separatorChar}testdonotusenameashashprefixforipr") } } \ No newline at end of file