Make sure we write output for the files even if they're in std.* package

This commit is contained in:
Maxim Shafirov
2011-12-30 14:28:47 +04:00
parent eee5e04804
commit 87748bb0c7
3 changed files with 25 additions and 37 deletions
@@ -18,7 +18,7 @@ public class StdlibTest extends CodegenTestCase {
session.addSources(myFile.getVirtualFile());
try {
session.addStdLibSources();
session.addStdLibSources(true);
} catch (Throwable e) {
throw new RuntimeException(e);
}
@@ -35,7 +35,7 @@ public class StdlibTest extends CodegenTestCase {
CompileSession session = new CompileSession(myEnvironment);
CompileEnvironment.initializeKotlinRuntime(myEnvironment);
session.addSources(myFile.getVirtualFile());
session.addStdLibSources();
session.addStdLibSources(true);
if (!session.analyze(System.out)) {
return null;