From da86ef8454e4dfa1bf78c09ff9ba3bbc9cfc465b Mon Sep 17 00:00:00 2001 From: Natalia Selezneva Date: Mon, 1 Jul 2019 13:13:00 +0300 Subject: [PATCH] Fix tests for long command line: create folder instead of file Compiler doesn't allow files as classpath roots --- .../org/jetbrains/kotlin/idea/run/runConfigurationTestUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/run/runConfigurationTestUtil.kt b/idea/tests/org/jetbrains/kotlin/idea/run/runConfigurationTestUtil.kt index 41a01d14f2f..fef7b30258c 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/run/runConfigurationTestUtil.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/run/runConfigurationTestUtil.kt @@ -65,7 +65,7 @@ fun createLibraryWithLongPaths(project: Project): Library { for (i in 0..maxCommandlineLengthWindows / maxFilenameLengthWindows) { val tmpFile = VirtualFileManager.constructUrl( LocalFileSystem.getInstance().protocol, - FileUtil.createTempFile("file$i", "a".repeat(maxFilenameLengthWindows)).path + FileUtil.createTempDirectory("file$i", "a".repeat(maxFilenameLengthWindows)).path ) addRoot(tmpFile, OrderRootType.CLASSES) }