changeset 14168:b8e62af091ee

added more context to CheckGraalInvariants failures
author Doug Simon <doug.simon@oracle.com>
date Thu, 13 Mar 2014 11:53:12 +0100
parents 37f7dfdbd25b
children 1ddbe67f6f77
files graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/CheckGraalInvariants.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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));
                             }
-
                         }
                     }
                 }