提交 9af091b7 编写于 作者: P pTalanov

Fix smoke test.

上级 35977890
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
......@@ -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();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册