# HG changeset patch # User Doug Simon # Date 1372194301 -7200 # Node ID 74cbc5d6e38ff9229dda76e8135069bc0b9c5131 # Parent 36b75ddac55e991228f654fc4f8c1e4eadec4c60 GraalCompilerTest throws an error if code installation fails diff -r 36b75ddac55e -r 74cbc5d6e38f graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Tue Jun 25 21:14:47 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Tue Jun 25 23:05:01 2013 +0200 @@ -451,6 +451,9 @@ @Override public InstalledCode call() throws Exception { InstalledCode code = addMethod(method, compResult); + if (code == null) { + throw new GraalInternalError("Could not install code for " + MetaUtil.format("%H.%n(%p)", method)); + } if (Debug.isDumpEnabled()) { Debug.dump(new Object[]{compResult, code}, "After code installation"); }