make most codegen tests are indenendent from jdk-headers/stdlib now

This commit is contained in:
Stepan Koltsov
2012-05-01 23:49:22 +04:00
parent 518f50692f
commit 5e77ca553c
33 changed files with 232 additions and 176 deletions
@@ -130,6 +130,7 @@ public abstract class CodegenTestCase extends JetLiteFixture {
myFile, JetControlFlowDataTraceFactory.EMPTY,
myEnvironment.getCompilerDependencies());
analyzeExhaust.throwIfError();
AnalyzingUtils.throwExceptionOnErrors(analyzeExhaust.getBindingContext());
GenerationState state = new GenerationState(getProject(), classBuilderFactory, analyzeExhaust, Collections.singletonList(myFile));
state.compileCorrectFiles(CompilationErrorHandler.THROW_EXCEPTION);
return state;
@@ -195,8 +196,7 @@ public abstract class CodegenTestCase extends JetLiteFixture {
r = method;
}
if (r == null)
throw new AssertionError();
if (r == null) { throw new AssertionError(); }
return r;
} catch (Error e) {
System.out.println(generateToText());