Mercurial > hg > truffle
changeset 10531:74cbc5d6e38f
GraalCompilerTest throws an error if code installation fails
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 25 Jun 2013 23:05:01 +0200 |
parents | 36b75ddac55e |
children | 1194e94f9c16 |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"); }