Print generated text to System.err in failed DxChecker.check

Otherwise it can mix with exception from test.
This commit is contained in:
Dmitry Petrov
2017-04-25 12:17:47 +03:00
parent 08fb9c2122
commit e91f4cf65a
@@ -421,10 +421,10 @@ public abstract class CodegenTestCase extends KtUsefulTestCase {
System.err.println("Generating instructions as text...");
try {
if (classFileFactory == null) {
System.out.println("Cannot generate text: exception was thrown during generation");
System.err.println("Cannot generate text: exception was thrown during generation");
}
else {
System.out.println(classFileFactory.createText());
System.err.println(classFileFactory.createText());
}
}
catch (Throwable e1) {