From b98828c8b02e22db28a6230c2567e15e2edf9b4c Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 15 May 2017 14:49:20 +0200 Subject: [PATCH] windows friendly ProjectUtilTest --- .../testSrc/com/intellij/openapi/project/ProjectUtilTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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