Fix test BE JvmBoxRunner to be able to see FIR BB tests exceptions

This commit is contained in:
Mikhail Glukhikh
2021-01-13 18:18:14 +03:00
parent 0c463d3260
commit 12caf5d743
2 changed files with 17 additions and 3 deletions
@@ -218,8 +218,15 @@ public class CodegenTestUtil {
}
catch (Throwable e) {
if (reportProblems) {
System.err.println(file.asText());
System.err.println(classNode.name + "::" + method.name + method.desc);
try {
System.err.println(file.asText());
System.err.println(classNode.name + "::" + method.name + method.desc);
} catch (Throwable ex) {
// In FIR we have factory which can't print bytecode
// and it throws exception otherwise. So we need
// ignore that exception to report original one
// TODO: fix original problem
}
//noinspection InstanceofCatchParameter
if (e instanceof AnalyzerException) {