Print generated text to System.err in failed DxChecker.check
Otherwise it can mix with exception from test.
This commit is contained in:
@@ -421,10 +421,10 @@ public abstract class CodegenTestCase extends KtUsefulTestCase {
|
|||||||
System.err.println("Generating instructions as text...");
|
System.err.println("Generating instructions as text...");
|
||||||
try {
|
try {
|
||||||
if (classFileFactory == null) {
|
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 {
|
else {
|
||||||
System.out.println(classFileFactory.createText());
|
System.err.println(classFileFactory.createText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Throwable e1) {
|
catch (Throwable e1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user