From d5cd49b2bfeb76dfe88add5d829b38fe994915f9 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Fri, 12 Apr 2019 13:57:00 +0200 Subject: [PATCH] Don't delete Idea temporary folder on JVM shutdown Before parallelization we don't delete Idea folders after test execution. Now there is problem with failing test on Teamcity. So try to keep folder undeleted (maybe there is some working daemon) --- .../tests/org/jetbrains/kotlin/test/KotlinTestUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java index 63a4df40a35..95ff1f8eb8f 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/KotlinTestUtils.java @@ -120,7 +120,7 @@ public class KotlinTestUtils { static { try { - IDEA_SYSTEM_PATH = tmpDirForReusableFolder("idea-system").getPath(); + IDEA_SYSTEM_PATH = FileUtil.createTempDirectory(new File(System.getProperty("java.io.tmpdir")), "idea-system", "", false).getPath(); } catch (IOException e) { throw new RuntimeException(e);