Mercurial > hg > graal-compiler
changeset 9918:ab90954e5fec
unittest/aot: disable one part of the test
setting the option to a different value after it was already used, is not a
good idea. I've to come up with a different solution to test it.
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Thu, 06 Jun 2013 21:22:43 +0200 |
parents | 2c82f780bff5 |
children | af909f4b80a9 |
files | graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java Thu Jun 06 17:26:22 2013 +0200 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/AheadOfTimeCompilationTest.java Thu Jun 06 21:22:43 2013 +0200 @@ -56,14 +56,18 @@ } @Test - public void testStaticFinalObject() { + @Ignore + public void testStaticFinalObject1() { + StructuredGraph result2 = compile("getStaticFinalObject", true); + assert result2.getNodes().filter(ConstantNode.class).count() == 1; + assert result2.getNodes(FloatingReadNode.class).count() == 1; + } + + @Test + public void testStaticFinalObject2() { StructuredGraph result1 = compile("getStaticFinalObject", false); assert result1.getNodes().filter(ConstantNode.class).count() == 1; assert result1.getNodes(FloatingReadNode.class).count() == 0; - - StructuredGraph result2 = compile("getStaticFinalObject", true); - assert result2.getNodes().filter(ConstantNode.class).count() == 1; - assert result2.getNodes(FloatingReadNode.class).count() == 1; } private StructuredGraph compile(String test, boolean compileAOT) {