# HG changeset patch # User Doug Simon # Date 1394707992 -3600 # Node ID b8e62af091eed19479afac81b1d588f9f1fabeb3 # Parent 37f7dfdbd25b7e70351fc1accfbebe8c01a32e8f added more context to CheckGraalInvariants failures diff -r 37f7dfdbd25b -r b8e62af091ee graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java Thu Mar 13 11:37:54 2014 +0100 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java Thu Mar 13 11:53:12 2014 +0100 @@ -121,9 +121,10 @@ } catch (LinkageError e) { // suppress linkages errors resulting from eager resolution } catch (Throwable e) { - throw new AssertionError("Error while checking " + methodName, e); + StringWriter sw = new StringWriter(); + e.printStackTrace(new PrintWriter(sw)); + errors.add(String.format("Error while checking %s:%n%s", methodName, sw)); } - } } }