From a69b5345d5956f30fb4e4903b2f5214b5d746c26 Mon Sep 17 00:00:00 2001 From: Natalia Selezneva Date: Thu, 13 Jun 2019 16:13:31 +0300 Subject: [PATCH] Fix RunConfigurationTest --- .../org/jetbrains/kotlin/idea/run/RunConfigurationTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/run/RunConfigurationTest.kt b/idea/tests/org/jetbrains/kotlin/idea/run/RunConfigurationTest.kt index 90fd10676d3..231de496ca4 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/run/RunConfigurationTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/run/RunConfigurationTest.kt @@ -147,7 +147,9 @@ class RunConfigurationTest: KotlinCodeInsightTestCase() { val javaParameters = getJavaRunParameters(kotlinRunConfiguration) val commandLine = javaParameters.toCommandLine().commandLineString - Assert.assertTrue(commandLine.length < javaParameters.classPath.pathList.joinToString().length) + assert(commandLine.length > javaParameters.classPath.pathList.joinToString(File.pathSeparator).length) { + "Wrong command line length: \ncommand line = $commandLine, \nclasspath = ${javaParameters.classPath.pathList.joinToString()}" + } } fun testClassesAndObjects() {