diff --git a/compiler/integration-tests/data/help.expected b/compiler/integration-tests/data/help.expected index 873ad73b72c..a242b6e0d96 100644 --- a/compiler/integration-tests/data/help.expected +++ b/compiler/integration-tests/data/help.expected @@ -1,16 +1,16 @@ OUT Usage: org.jetbrains.jet.cli.jvm.K2JVMCompilerArguments -OUT -output [String] output directory OUT -jar [String] jar file name OUT -src [String] source file or directory -OUT -module [String] module to compile OUT -classpath [String] classpath to use when compiling OUT -includeRuntime [flag] OUT -stdlib [String] Path to the stdlib.jar OUT -jdkHeaders [String] Path to the kotlin-jdk-headers.jar -OUT -help (-h) [flag] OUT -mode [String] Special compiler modes: stubs or jdkHeaders +OUT -output [String] output directory +OUT -module [String] module to compile OUT -tags [flag] OUT -verbose [flag] OUT -version [flag] +OUT -help (-h) [flag] ERR exec() finished with INTERNAL_ERROR return code Return code: 2 diff --git a/compiler/integration-tests/src/org/jetbrains/kotlin/KotlinIntegrationTestBase.java b/compiler/integration-tests/src/org/jetbrains/kotlin/KotlinIntegrationTestBase.java index 107b96d279f..d2656fe31b6 100644 --- a/compiler/integration-tests/src/org/jetbrains/kotlin/KotlinIntegrationTestBase.java +++ b/compiler/integration-tests/src/org/jetbrains/kotlin/KotlinIntegrationTestBase.java @@ -59,7 +59,8 @@ public abstract class KotlinIntegrationTestBase { protected void succeeded(Description description) { try { tempDir.delete(); - } catch (Exception e) { + } + catch (Exception e) { System.out.print("Can't delete temp directory " + tempDir + ": " + e); } } @@ -119,12 +120,12 @@ public abstract class KotlinIntegrationTestBase { } else { final String goldContent = Files.toString(expectedFile, UTF_8); - if (!goldContent.equals(content.toString())) { - Files.write(content, tmpFile, Charsets.UTF_8); - fail(".tmp and .expected files differ, tmp file: " + tmpFile); + try { + assertEquals(goldContent, content.toString()); + } + finally { + tmpFile.delete(); } - - tmpFile.delete(); } }