Mercurial > hg > graal-compiler
changeset 13647:8edc6b0779f0
suppress the exception raised by Junit's "assume" mechanism in GraalCompilerTest.test()
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 15 Jan 2014 20:21:53 +0100 |
parents | e0102f250d76 |
children | 27acedac70b7 |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Wed Jan 15 18:21:55 2014 +0100 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Wed Jan 15 20:21:53 2014 +0100 @@ -462,10 +462,14 @@ } protected void test(String name, Object... args) { - Method method = getMethod(name); - Object receiver = Modifier.isStatic(method.getModifiers()) ? null : this; - - test(method, receiver, args); + try { + Method method = getMethod(name); + Object receiver = Modifier.isStatic(method.getModifiers()) ? null : this; + test(method, receiver, args); + } catch (AssumptionViolatedException e) { + // Suppress so that subsequent calls to this method within the + // same Junit @Test annotated method can proceed. + } } protected void test(Method method, Object receiver, Object... args) {